[R] Simple plotting errors
simon.pickett at bto.org
Mon May 18 15:04:30 CEST 2009
1.use ylab="" to suppress y labels, then mxtext to manually draw em yourself
OR use mgp=... within par()
2.use xlab not xlim to change the x axis labels
----- Original Message -----
From: "Steve Murray" <smurray444 at hotmail.com>
To: <simon.pickett at bto.org>; <r-help at r-project.org>; <ba208 at exeter.ac.uk>;
<jholtman at gmail.com>
Sent: Monday, May 18, 2009 1:39 PM
Subject: RE: [R] Simple plotting errors
> Thanks for all the useful information; use of 'c(...)' did the trick,
> although in future I'll try to hold the data in a more user-friendly
> I've now got a plot, but have two issues that I can't seem to resolve:
> 1, The ylab is overlapping the y-axis tick mark values. I've tried using
> oma and mar to adjust the outer and plot margins respectively, but this
> doesn't seem to 'detach' the overlapping text.
> 2. The x-axis currently has tick mark values of 2 to 12. How do change
> this to single-letter month labels? So far I've tried
> xlim=c("J","F","M",A","M"...) and names.arg=c("J","F","M"...), but these
> result in errors.
> Any suggestions would be much appreciated.
> Thanks again,
> View your Twitter and Flickr updates from one place – Learn more!
More information about the R-help