[R] R plot : hat symbol and cex.lab

Duncan Murdoch murdoch.duncan at gmail.com
Tue Apr 26 16:32:15 CEST 2011


On 26/04/2011 8:01 AM, BMichel wrote:
> Hello,
>
> Does anybody know how to make the "hat" correctly appears in the label of
> this plot (with this cex.lab coefficient) :
>
> plot(1:10, 1:10,ylab = expression(hat(h)),cex.lab = 1.5)
>
> The "hat" does not completely appear on my graph, it is like cut on the left
> side.
> It tried to change the margin :
>
> par(oma=c(0,2,0,0))
> plot(1:10, 1:10,ylab = expression(hat(h)),cex.lab = 1.5)
>
> but it doesn't work. Thanks for your help.

Don't use "oma", that's the "outer margin".  Use "mar", e.g.

# Add one to the left margin
par(mar=c(5.1, 5.1, 4.1, 2.1) )

Duncan Murdoch



More information about the R-help mailing list