Re: [R] Plotting multiple time series with variables having different units

2014-02-05 Thread Paul Gilbert
multiple time series with variables having different units Message-ID:52ee97f2.3000...@imap.iu.edu Content-Type: text/plain; charset=ISO-8859-1; format=flowed I've tried to figure out how to do this from what I read, but haven't been successful. Suppose I have a dataframe with variables

Re: [R] Plotting multiple time series with variables having different units

2014-02-03 Thread Bert Gunter
David: 1. Unless it is a personal answer, reply to the list, not me. I am not your personal consultant, and you are likely to get better answers that way anyway. 2. Stop looking at examples and start reading docs. ?layout says nothing about controlling plot scales -- it just partitions the

[R] Plotting multiple time series with variables having different units

2014-02-02 Thread David Parkhurst
I've tried to figure out how to do this from what I read, but haven't been successful. Suppose I have a dataframe with variables Date, X, and Y (and maybe U, V, and Z) where X, Y, etc. have different units. I'd like to plot Y vs. Time above X vs. Time, above one another. For example, X is

Re: [R] Plotting multiple time series with variables having different units

2014-02-02 Thread Bert Gunter
If I understand you correctly, there are so many ways to do this (ggplot2, lattice, base graphics with multiple graphs per page via ?layout,...) that I am puzzled as to how you failed to find what you needed. Exactly what was it that you read that left you unable to do this? Perhaps some

Re: [R] Plotting multiple time series with variables having different units

2014-02-02 Thread Rolf Turner
Just ***DON'T***!!! Very bad idea; usually wildly misleading. See, e.g.: http://www.perceptualedge.com/articles/visual_business_intelligence/dual-scaled_axes.pdf OTOH if you're going to be bloody-minded and do it anyway, there are brazillions of hits from a Google search which will tell you

Re: [R] Plotting multiple time series with variables having different units

2014-02-02 Thread Jeff Newmiller
He did not ask for dual axis graphs, Rolf. This can be done with lattice graphics and also with ggplot. See, for example, [1] or [2]. The melt function is a very powerful tool for preparing for this task. [1]

Re: [R] Plotting multiple time series with variables having different units

2014-02-02 Thread Gabor Grothendieck
On Sun, Feb 2, 2014 at 2:09 PM, David Parkhurst parkh...@imap.iu.eduwrote: I've tried to figure out how to do this from what I read, but haven't been successful. Suppose I have a dataframe with variables Date, X, and Y (and maybe U, V, and Z) where X, Y, etc. have different units. I'd like

Re: [R] Plotting multiple time series with variables having different units

2014-02-02 Thread Jim Lemon
On 02/03/2014 06:09 AM, David Parkhurst wrote: I've tried to figure out how to do this from what I read, but haven't been successful. Suppose I have a dataframe with variables Date, X, and Y (and maybe U, V, and Z) where X, Y, etc. have different units. I'd like to plot Y vs. Time above X vs.

Re: [R] Plotting multiple time series with variables having different units

2014-02-02 Thread Rolf Turner
Perhaps I misunderstood your question. Jeff Newmiller says that you did not want multiple y-scales on the same plot, which is how I read what you wrote. If you just want plots of X vs. time, Y vs. time, etc. stacked one above the other then you perhaps should simple use par(mfrow(.,.)) or