[R] how to move x-axis labels down
Liaw, Andy
andy_liaw at merck.com
Mon Jan 31 22:43:39 CET 2005
I guess setting par(mgp) would help.
Andy
> From: Wittner, Ben
>
> Hi,
>
> In the code below, the labels I put on the x-axis are too
> high (they cross the
> axis). Can anyone tell me how to move them down? I've tried
> adj=, padj=, mar=,
> and various other things, but cannot move them down.
>
> Thanks.
>
> -Ben
>
> labs <- paste('sample', 1:10)
> plot(1:10, xaxt='n', xlab='')
> axis(1, at=1:10, labels=labs, padj=1, las=2) # las is a
> par() parameter
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
>
More information about the R-help
mailing list