ewenharrison / finalfit

Quickly create elegant regression results tables and plots when modelling in R
https://finalfit.org/
Other
266 stars 29 forks source link

enhancement - remove leading zeroes from or_plot table p values #106

Open jemmaf opened 2 months ago

jemmaf commented 2 months ago

Hi Ewen,

Thanks for creating this package - it's been very helpful! I had a small quality of life improvement for the or_plot() table which removes the leading zeroes in the p value. This would be desirable for many academic journal standards (particularly psychology).

#removing leading zeroes df.out[,8] <- gsub("p=0.", "p = .", df.out[,8], fixed = TRUE)

I haven't yet been able to make the p italicised (although I'm sure there must be a way).

All best! Jemma

ewenharrison commented 1 month ago

That's great to hear Jemma, thank you!

Ewen