Try this (and make sure to follow the last line to every message on r-help which asks for reproducible code in questions):
plot(amazon.sum, xlab = "Month", ylab = "Amazon Sum", xaxt = "n") axis(1, at = 1:12, substr(month.abb, 1, 1)) On Mon, May 18, 2009 at 8:39 AM, Steve Murray <smurray...@hotmail.com> wrote: > > 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 > > > _________________________________________________________________ > [[elided Hotmail spam]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.