[R] Scale of axis for two data sets

John Kane jrkrideau at inbox.com
Tue Aug 27 13:27:49 CEST 2013


I am misreading something here I think. Why are you graphing against a constant?

John Kane
Kingston ON Canada


> -----Original Message-----
> From: mohan.radhakrishnan at polarisft.com
> Sent: Tue, 27 Aug 2013 13:28:48 +0530
> To: r-help at r-project.org
> Subject: [R] Scale of axis for two data sets
> 
> Hi,
> 
> Kbytes                     RSS                         rNo
> 
> 2689632 1450876 1433788
> 2689632 1450876 1433788
> 2689632 1450876 1433788
> 2689632 1450876 1433788
> 2689632 1450876 1433788
> 2689632 1450876 1433788
> 2689632 1450876 1433788
> 2689632 1460168 1443084
> 
> 
> 
> plot(data$rNo,data$RSS,pch=0,type="b",col=36,axes=FALSE,  ylab="",
> xlab="",las=2,lwd=2.5)
> title(" PID - 23512 / pmap Data Analysis for 1
> hour",cex.main=3,xlab="Seconds", ylab="Kbytes ", cex.lab=3,1)
> 
> axis(side=1, at=seq(0, max(data$rNo), by=5), cex.axis=1.7)
> axis(side=2, at=seq(0, max(data$Kbytes ), by=1000), cex.axis=1.7)
> 
> This code plots Kbytes against rNo.
> 
> I tried to combine this with the plot of RSS against rNo. It looks like
> with the same scale in the y-axis(Kbytes) the second graph(RSS/rNo)
> doesn't show plots properly. It seems like the second plot draws properly
> but doesn't match the y-axis scale.
> 
> IfI separate the plots into two 'R' files I get it correctly.
> 
> How do I used the same y-axis scale(Kbytes) but also plot RSS against
> rNo.
> Hope I am not confusing this.
> 
> Thanks,
> Mohan
> 
> 
> 
> This e-Mail may contain proprietary and confidential information and is
> sent for the intended recipient(s) only.  If by an addressing or
> transmission error this mail has been misdirected to you, you are
> requested to delete this mail immediately. You are also hereby notified
> that any use, any form of reproduction, dissemination, copying,
> disclosure, modification, distribution and/or publication of this e-mail
> message, contents or its attachment other than by its intended
> recipient/s is strictly prohibited.
> 
> Visit us at http://www.polarisFT.com
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> 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 EARTH SCREENSAVER - Watch the Earth right on your desktop!



More information about the R-help mailing list