Re: [R] drawing an axis using axis command

2009-07-06 Thread Greg Snow
f Of John Kane > Sent: Monday, July 06, 2009 1:13 PM > To: r-help@r-project.org > Subject: [R] drawing an axis using axis command > > > > I am clearly doing something extremely stupid here but why is this code > not writing the axis values for this graph? > &

Re: [R] drawing an axis using axis command

2009-07-06 Thread John Kane
Of course. I actually tried that but apparently messed it up. My thanks to eveyone. I knew it was something relatively obvious but I was completely blanking out on it. --- On Mon, 7/6/09, Don MacQueen wrote: > From: Don MacQueen > Subject: Re: [R] drawing an axis using axis comman

Re: [R] drawing an axis using axis command

2009-07-06 Thread Don MacQueen
After your plot command, type par()$usr It will show you that your x axis range is 1907 to 2009. But you tried to put the axis labels at x=1 to 11, which are not within the range of the data. -Don At 12:13 PM -0700 7/6/09, John Kane wrote: I am clearly doing something extremely stupid her

Re: [R] drawing an axis using axis command

2009-07-06 Thread Don MacQueen
Please show the error message. At 12:13 PM -0700 7/6/09, John Kane wrote: I am clearly doing something extremely stupid here but why is this code not writing the axis values for this graph? Any suggestions gratefully received. structure(list(year = c(1911L, 1921L, 1931L, 1941L, 1951L, 1961L,

[R] drawing an axis using axis command

2009-07-06 Thread John Kane
I am clearly doing something extremely stupid here but why is this code not writing the axis values for this graph? Any suggestions gratefully received. structure(list(year = c(1911L, 1921L, 1931L, 1941L, 1951L, 1961L, 1971L, 1981L, 1991L, 2001L, 2006L), total = c(7206643L, 8788483L, 103767