Re: [R] plot 2 y axis

2013-04-17 Thread John Kane
b = "Weight") plot(dat1$Date, dat1$Height, col = "blue", xlab = "Date", ylab = "Height") par <- opar John Kane Kingston ON Canada > -Original Message- > From: ye...@lbl.gov > Sent: Tue, 16 Apr 2013 15:35:29 -0700 > To: r-help@r-proje

Re: [R] plot 2 y axis

2013-04-16 Thread Jim Lemon
On 04/17/2013 08:35 AM, Ye Lin wrote: Hi, I want to plot two variables on the same graph but with two y axis just like what you can do in Excel. I searched online that seems like you can not achieve that in ggplot. So is there anyway I can do it in a nice way in basic plot? Suppose my data look

[R] plot 2 y axis

2013-04-16 Thread Ye Lin
Hi, I want to plot two variables on the same graph but with two y axis just like what you can do in Excel. I searched online that seems like you can not achieve that in ggplot. So is there anyway I can do it in a nice way in basic plot? Suppose my data looks like this: WeightHeight Date 0.