# How to plot two variables using a secondary Y axis

4 messages
Open this post in threaded view
|

## How to plot two variables using a secondary Y axis

 Date  Fo  Co    6/27/2007  57.1  13.9    6/28/2007  57.7  14.3    6/29/2007  57.8  14.3    6/30/2007  57  13.9    7/1/2007  57.1  13.9    7/2/2007  57.2  14.0    7/3/2007  57.3  14.1    7/4/2007  57.6  14.2    7/5/2007  58  14.4    7/6/2007  58.1  14.5    7/7/2007  58.2  14.6    7/8/2007  58.4  14.7    7/9/2007    58.7     14.8       Hello all:   I am a newbie to R, and I was wondering how can I plot the Temperature values above using Lattice or ggplot2 code. I want Date(X axis), Degrees F(Y axis) and Degrees C( on a secondary Y axis).   Thanks                                         ---------------------------------         [[alternative HTML version deleted]] ______________________________________________ [hidden email] mailing list https://stat.ethz.ch/mailman/listinfo/r-helpPLEASE do read the posting guide http://www.R-project.org/posting-guide.htmland provide commented, minimal, self-contained, reproducible code.
Open this post in threaded view
|

## Re: How to plot two variables using a secondary Y axis

 Felipe Carrillo said the following on 7/10/2007 7:58 AM: >           Date  Fo  Co    6/27/2007  57.1  13.9    6/28/2007  57.7  14.3    6/29/2007  57.8  14.3    6/30/2007  57  13.9    7/1/2007  57.1  13.9    7/2/2007  57.2  14.0    7/3/2007  57.3  14.1    7/4/2007  57.6  14.2    7/5/2007  58  14.4    7/6/2007  58.1  14.5    7/7/2007  58.2  14.6    7/8/2007  58.4  14.7    7/9/2007    58.7 >     14.8 >     >   Hello all: >   I am a newbie to R, and I was wondering how can I plot the Temperature values above using Lattice or ggplot2 code. I want Date(X axis), Degrees F(Y axis) and Degrees C( on a secondary Y axis). >   Thanks >     >     >     For lattice, see this thread: http://finzi.psych.upenn.edu/R/Rhelp02a/archive/102768.htmlHTH, --sundar ______________________________________________ [hidden email] mailing list https://stat.ethz.ch/mailman/listinfo/r-helpPLEASE do read the posting guide http://www.R-project.org/posting-guide.htmland provide commented, minimal, self-contained, reproducible code.