As far as I understand ggplot2, you cannot do it. ggplot2 is pretty much
designed to NOT allow two different sets of data with different y axes in the
same plot.
Doing this is generally considered very bad practice. I'd suggest looking into
perhaps using a 2X1 or X2 grid and plotting the tw
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
2 matches
Mail list logo