Re: [R] plot custom x axis ticks values

2013-02-15 Thread PIKAL Petr
Hi > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of e-letter > Sent: Friday, February 15, 2013 11:37 AM > To: Duncan Murdoch > Cc: r-help@r-project.org > Subject: Re: [R] plot custom x axis ticks valu

Re: [R] plot custom x axis ticks values

2013-02-15 Thread e-letter
On 15/02/2013, Duncan Murdoch wrote: > On 13-02-15 3:28 AM, e-letter wrote: >> On 15/02/2013, Jim Lemon wrote: >>> On 02/14/2013 09:41 PM, e-letter wrote: Readers, For this data set: testvalues<-c(10,20,30,40) How to amend the plot instruction: plot(te

Re: [R] plot custom x axis ticks values

2013-02-15 Thread Jim Lemon
On 02/15/2013 07:28 PM, e-letter wrote: ... plot(testvalues,ann=FALSE,type='l',yaxt='n',xaxt='n',xlim=c(0,300)) axis(1,at=c(0,100,200,300)) The use of 'xlim' makes the graph unacceptable. Instead, it would be better to plot: plot(testvalues,ann=FALSE,type='l',yaxt='n') The x-axis shows tick ma

Re: [R] plot custom x axis ticks values

2013-02-15 Thread Duncan Murdoch
On 13-02-15 3:28 AM, e-letter wrote: On 15/02/2013, Jim Lemon wrote: On 02/14/2013 09:41 PM, e-letter wrote: Readers, For this data set: testvalues<-c(10,20,30,40) How to amend the plot instruction: plot(testvalues,ann=FALSE,type='l',yaxt='n',xaxt='n') so that x axis ticks labels can be a

Re: [R] plot custom x axis ticks values

2013-02-15 Thread e-letter
On 15/02/2013, Jim Lemon wrote: > On 02/14/2013 09:41 PM, e-letter wrote: >> Readers, >> >> For this data set: >> >> testvalues<-c(10,20,30,40) >> >> How to amend the plot instruction: >> >> plot(testvalues,ann=FALSE,type='l',yaxt='n',xaxt='n') >> >> so that x axis ticks labels can be added to exi

Re: [R] plot custom x axis ticks values

2013-02-15 Thread e-letter
On 14/02/2013, MacQueen, Don wrote: >> plot(testvalues,ann=FALSE,type='l',yaxt='n',xaxt='n') >> par()$usr > [1] 0.88 4.12 8.80 41.20 > > The x axis range is from 0.88 to 4.12, so tick labels at 0, 100, 200, 300 > makes no sense. > True per se, but the purpose of the tick labels is to indicate

Re: [R] plot custom x axis ticks values

2013-02-14 Thread Jim Lemon
On 02/14/2013 09:41 PM, e-letter wrote: Readers, For this data set: testvalues<-c(10,20,30,40) How to amend the plot instruction: plot(testvalues,ann=FALSE,type='l',yaxt='n',xaxt='n') so that x axis ticks labels can be added to existing graph with arbitrary value such as 0,100,200,300)? Hi

Re: [R] plot custom x axis ticks values

2013-02-14 Thread MacQueen, Don
> plot(testvalues,ann=FALSE,type='l',yaxt='n',xaxt='n') > par()$usr [1] 0.88 4.12 8.80 41.20 The x axis range is from 0.88 to 4.12, so tick labels at 0, 100, 200, 300 makes no sense. Any axis() command where the 'at' values are within the range of the x axis will work. Even, for example, ax

Re: [R] plot custom x axis ticks values

2013-02-14 Thread PIKAL Petr
p@r-project.org > Subject: Re: [R] plot custom x axis ticks values > > On 14/02/2013, PIKAL Petr wrote: > > Hi > > > > much quicker and better for you is to inspect help pages. > > > > ?axis > > > > axis(1, at=1:4, labels=c(letters[1:4])) > > Had

Re: [R] plot custom x axis ticks values

2013-02-14 Thread e-letter
On 14/02/2013, PIKAL Petr wrote: > Hi > > much quicker and better for you is to inspect help pages. > > ?axis > > axis(1, at=1:4, labels=c(letters[1:4])) Had tried, but noticed that the labels created were not positioned equally across the entire axis, but occupied about 50 % (the left half) of t

Re: [R] plot custom x axis ticks values

2013-02-14 Thread PIKAL Petr
, 2013 11:41 AM > To: r-help@r-project.org > Subject: [R] plot custom x axis ticks values > > Readers, > > For this data set: > > testvalues<-c(10,20,30,40) > > How to amend the plot instruction: > > plot(testvalues,ann=FALSE,type='l',yaxt=&

[R] plot custom x axis ticks values

2013-02-14 Thread e-letter
Readers, For this data set: testvalues<-c(10,20,30,40) How to amend the plot instruction: plot(testvalues,ann=FALSE,type='l',yaxt='n',xaxt='n') so that x axis ticks labels can be added to existing graph with arbitrary value such as 0,100,200,300)? Thanks in advance. -- r2151 ___