[R] Scale of axis for two data sets
John Kane
jrkrideau at inbox.com
Tue Aug 27 14:43:13 CEST 2013
Jim,
With those ranges isn't Mohan going to lose discrimination? That's one reason I suggested a two-panel approach.
John Kane
Kingston ON Canada
> -----Original Message-----
> From: jim at bitwrit.com.au
> Sent: Tue, 27 Aug 2013 22:36:12 +1000
> To: mohan.radhakrishnan at polarisft.com
> Subject: Re: [R] Scale of axis for two data sets
>
> On 08/27/2013 10:08 PM, Jim Lemon wrote:
>> On 08/27/2013 10:01 PM, mohan.radhakrishnan at polarisft.com wrote:
>>> Hi,
>>> Can't one y-axis be used ? Both 'Kbytes' and 'RSS' use the
>>> same unit.
>>>
>>>
>> Hi Mohan,
>> Yes, you can use a single y axis. What you probably want is something
>> like this:
>>
>> ylim<-range(c(Kbytes,RSS))
>> plot(rNo,Kbytes,col=2,pch=1,type="b")
>> points(rNo,RSS,col=3,pch=2,type="b")
>>
> Bleagh! Too late. should be:
>
> plot(rNo,Kbytes,col=2,pch=1,type="b",ylim=ylim)
> points(rNo,RSS,col=3,pch=2,type="b")
>
> Jim
>
> ______________________________________________
> R-help at 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.
____________________________________________________________
FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!
More information about the R-help
mailing list