Re: [R] how to put barchart and line chart in the same plot in ggplot2

2012-08-05 Thread John Kane
on ON Canada > -Original Message- > From: xin...@stat.psu.edu > Sent: Sat, 4 Aug 2012 17:17:58 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] how to put barchart and line chart in the same plot in > ggplot2 > > dear userR: > I am trying to plot two depende

Re: [R] how to put barchart and line chart in the same plot in ggplot2

2012-08-05 Thread Jim Lemon
On 08/05/2012 10:17 AM, xin wei wrote: dear userR: I am trying to plot two dependent variables in the same plot in ggplot2. because these two variables have very different magnitude, I have to use a second Y axis. I hope one variable to be line and the other to be barchart. The x axis is continuo

[R] how to put barchart and line chart in the same plot in ggplot2

2012-08-04 Thread xin wei
dear userR: I am trying to plot two dependent variables in the same plot in ggplot2. because these two variables have very different magnitude, I have to use a second Y axis. I hope one variable to be line and the other to be barchart. The x axis is continuous. Yet since I have to make barchart, I