[R] Simple plotting errors

Simon Pickett simon.pickett at bto.org
Mon May 18 15:04:30 CEST 2009


read ?par

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

HTH, Si.


----- 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 
> setup.
>
> 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,
>
> Steve
>
>
> _________________________________________________________________
> View your Twitter and Flickr updates from one place – Learn more!
> http://clk.atdmt.com/UKM/go/137984870/direct/01/
>




More information about the R-help mailing list