]
[mailto:[EMAIL PROTECTED] On Behalf Of Earl F. Glynn
Sent: Thursday, September 01, 2005 11:14 AM
To: r-help@stat.math.ethz.ch
Subject: Re: [R] Spacing and margins in plot
Chris Wallace [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
how about
plot(..., xlab=)
title(xlab=label
Jamieson Cobleigh wrote:
If I use the following command to plot points:
plot(c(1,2,2,3,3,3), type=p, pch=20, ylab=Y Label, xlab=X Label,
xaxt=n)
there is a large amount of space between the label X Label and the
actual x-axis. If I change the xaxt=n to xaxt=s, the label X
Label don't
This technote explains the margin area (mar) and how to modify it to control
white space around a graphic:
http://research.stowers-institute.org/efg/R/Graphics/Basics/mar-oma/index.htm
When you have multiple figures on a graphic, you may also want to learn to
control the outer margin area (oma),
That worked and gave me enough information so to make it look exactly
the way I want.
Thanks!
Jamie
On 9/1/05, Chuck Cleland [EMAIL PROTECTED] wrote:
How about this:
par(mar=c(2,4,1,1))
plot(c(1,2,2,3,3,3), type=p, pch=20, ylab=Y Label, xlab=, xaxt=n)
mtext(side=1, line=0.5, X Label)
Earl F. Glynn [EMAIL PROTECTED] 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
Chris Wallace [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
how about
plot(..., xlab=)
title(xlab=label text, line=2)
Yes, Chris, I like your idea, especially when I can fix both X and Y axes
at the same time:
plot(0, xlab=,ylab=)
title(xlab=X axis, ylab=Y axis, line=2)
I'd