Hmisc icon indicating copy to clipboard operation
Hmisc copied to clipboard

hist.data.frame() with cex.axis, etc.

Open jinghuazhao opened this issue 1 year ago • 1 comments

Hi Frank,

I tried to enlarge fonts in hist.data.frame() through cex.axis, cex.label, etc., but it appears with no effect -- by looking at the code, I am wondering if those hist() statements should take a (...) argument? When I did that it appears working but the y-axis is in Greek (still in need of figuring it out)!

Thanks very much for creating such a useful function.

Jing Hua Zhao

jinghuazhao avatar Jun 07 '23 19:06 jinghuazhao

After adding (...), a call hist.data.frame(d,cex.axis=2.5,cex.lab=2.5,cex.mtext=2.5,cex.names=2.5,ylab=expression("Frequency")) appears fixing the y-axis label as well (I feel somewhat strange graphics::hist() takes a ylab with no default value in the documentation nevertheless permits a ylab= option).

jinghuazhao avatar Jun 07 '23 20:06 jinghuazhao

I now prefer ggplot2 for this after melting the dataset over all the variable of interest. I think the output is neater. But patches in hist.data.frame are welcomed.

harrelfe avatar Aug 11 '24 13:08 harrelfe