[R] Relocating Axis Label/Title
jrkrideau at yahoo.ca
Wed Aug 8 19:19:12 CEST 2007
Have a look at "mar" in ?par. You might want to
try something like mar=c(5, 5, 4, 2) + 0.1 rather than
the default of c(5, 4, 4, 2) + 0.1 .
--- Lorenzo Isella <lorenzo.isella at gmail.com> wrote:
> Dear All,
> I am experiencing some problems with relocating an
> axis title.
> I visited the following link before posting:
> But this is not entirely what I would like to do
> Consider the example below:
> ylab = list(expression(paste(dN/dlogD[agg],"
> xlab = expression(paste(D[agg]," [nm]")),
> title(2, mgp=c(0, .3, 0))
> I have the problem that the "3" in cubic centimeters
> (on the y axis)
> is somehow "cut" in the pdf file I generate.
> Everything would be fine
> if I could shift a bit the title of the y axis.
> It must be trivial, but so far I have not managed to
> do it.
> Any suggestions?
> Many thanks
> I tried playing with the mgp parameter, but I
> managed to move the
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained,
> reproducible code.
More information about the R-help