[R] line graph question

Jim Lemon jim at bitwrit.com.au
Sat Mar 26 23:34:14 CET 2011


On 03/27/2011 09:21 AM, Bulent Arikan wrote:
> Hi,
> I am working on some line charts and although I have a lot of resources, I
> cannot seem to find an answer to this question: how can I set the
> incrementation of values on the x-axis values so that I can see all the
> groups on this axis. Right now, R puts them at increments of 2 (i.e., 2, 4,
> 6, 8, 10, 12). I need to see all, from 1 to 12.
>
Hi Bulent,
First try:

plot(...,xaxt="n",...)
axis(1,at=1:12,labels=1:12)

and if they are still not there, look at staxlab in the plotrix package.

Jim



More information about the R-help mailing list