Hi,
              Can't one y-axis be used ? Both 'Kbytes' and 'RSS' use the 
same unit. 


Thanks,
Mohan



From:   John Kane <jrkrideau@inbox.com>
To:     mohan.radhakrishnan@polarisft.com
Cc:     r-help@r-project.org
Date:   08/27/2013 05:13 PM
Subject:        RE: [R] Scale of axis for two data sets



Still looks like a constant to me :) I think I see what you mean though. 
It's just that representation of the numbers in the email don't show any 
difference. 

Personally I think I'd go with a two panel graph using par() rather than a 
double-axis graph if you can. Everything I have read about double-axis 
graphs is  rather negative. However, I know they are standard in some 
disciplines.

John Kane
Kingston ON Canada

-----Original Message-----
From: mohan.radhakrishnan@polarisft.com
Sent: Tue, 27 Aug 2013 17:08:51 +0530
To: jrkrideau@inbox.com
Subject: RE: [R] Scale of axis for two data sets

It is not a constant but changes very slowly. Actually it should be like 
this. 

Kbytes                    RSS                   rNo 
2687188        1287532        1 
2687188        1287532        2 
2687188        1287536        3 
2687188        1287540        4 
2687188        1287640        5 
2687188        1287640        6 

Thanks, 
Mohan 

From:        John Kane <jrkrideau@inbox.com> 
To:        mohan.radhakrishnan@polarisft.com, r-help@r-project.org 
Date:        08/27/2013 04:57 PM 
Subject:        RE: [R] Scale of axis for two data sets 

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

 John Kane
 Kingston ON Canada

 > -----Original Message-----
 > From: mohan.radhakrishnan@polarisft.com
 > Sent: Tue, 27 Aug 2013 13:28:48 +0530
 > To: r-help@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 [http://www.polarisft.com/]
 > 
 >                  [[alternative HTML version deleted]]
 > 
 > ______________________________________________
 > R-help@r-project.org mailing list
 > https://stat.ethz.ch/mailman/listinfo/r-help [
https://stat.ethz.ch/mailman/listinfo/r-help]
 > PLEASE do read the posting guide
 > http://www.R-project.org/posting-guide.html [
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!
 Check it out at http://www.inbox.com/earth [http://www.inbox.com/earth]

 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

____________________________________________________________
FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on 
your desktop!







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]]

