[R] Increase space between xlab and X axis tick labels
ggrothendieck at gmail.com
Sun Sep 25 18:24:12 CEST 2011
On Sun, Sep 25, 2011 at 6:54 AM, Philip Rhoades <phil at pricom.com.au> wrote:
> I am using the "las=2" parameter to rotate the labels for the X axis ticks
> but it means that they are almost touching the "xlab" string. I have been
> messing around with the "mai" paremeter but that doesn't help - is there
> some way of increasing the space between xlab and the X axis tick labels?
Try adjusting mar and mgp:
opar <- par(mar = c(5, 6, 4, 2) + 0.1, no.readonly = TRUE)
plot(0, las = 2, mgp = c(4, 1, 0), ylab = "Y")
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
email: ggrothendieck at gmail.com
More information about the R-help