[R] Histogram Title Size&Font

Uwe Ligges ligges at statistik.uni-dortmund.de
Wed Aug 29 16:25:15 CEST 2007



livia wrote:
> Hello, I would like to plot a histogram with title "Return", and I would like
> the font for the title to be "Bold" and the size to be 8( as in Excel).
> 
> I tried the following code, but it does not make any change. Could anyone
> give me some advice?

See ?par.

Uwe Ligges



> hist (preturn, seq(-0.05,0.05,0.005),freq = FALSE, main="Return", font=2,
> cex=8,xlab="return",xlim=c(-0.05,0.05))
> 
> Many thanks.



More information about the R-help mailing list