[R] Spacing and margins in plot

Chris Wallace c.wallace at qmul.ac.uk
Thu Sep 1 16:34:07 CEST 2005


"Earl F. Glynn" <efg at stowers-institute.org> writes:

> AFAIK, the only way to get the axis label "closer" to the axis is to
> suppress the actual axis labels and use the mtext command to display
> alternative text where you want it.  For example, look at the blue text in
> Figure 2B (at the above link)  that is between the axis label and the axis.
> This blue text is at line=2, when the axis labels are at line=3.

how about
plot(..., xlab="")
title(xlab="label text", line=2)

?




More information about the R-help mailing list