Re: [R] Two Y axes (same scale) in ggplot2 or plot

2012-05-09 Thread Gary Dong
Thanks, Duncan. I tried axis(). It appears it allows you to add an axis, but does not say you can plot a second Y in the graph. Maybe I'm understanding it correctly. Any help will be appreciated! Gary On Wed, May 9, 2012 at 7:26 AM, Duncan Murdoch wrote: > On 08/05/2012 3:23 PM, Gary Dong wrot

Re: [R] Two Y axes (same scale) in ggplot2 or plot

2012-05-09 Thread Duncan Murdoch
On 09/05/2012 10:46 AM, Gary Dong wrote: Thanks, Duncan. I tried axis(). It appears it allows you to add an axis, but does not say you can plot a second Y in the graph. Maybe I'm understanding it correctly. Any help will be appreciated! I don't understand what you want. Could you give an ex

Re: [R] Two Y axes (same scale) in ggplot2 or plot

2012-05-09 Thread Duncan Murdoch
On 08/05/2012 3:23 PM, Gary Dong wrote: Dear R users, I'm plotting housing prices in City A over past 30 years in ggplot2. The Xs are years since 1980. I have two housing price variables: new home prices and old home prices, both of them measured by $/sqft. I have searched related threads on mul

[R] Two Y axes (same scale) in ggplot2 or plot

2012-05-08 Thread Gary Dong
Dear R users, I'm plotting housing prices in City A over past 30 years in ggplot2. The Xs are years since 1980. I have two housing price variables: new home prices and old home prices, both of them measured by $/sqft. I have searched related threads on multiple Y axes in ggplot2 and I understand t