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
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
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
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
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
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
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
> 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
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
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
, 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=&
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
___
12 matches
Mail list logo