[R] plot with two y axes

Thomas Lumley thomas at biostat.washington.edu
Thu Sep 7 20:25:06 CEST 2000


On Thu, 7 Sep 2000, John P. Burkett wrote:

> I'm trying to make a transition from S-plus under Windows to R under
> Linux.  My immediate aim is to produce a scatter plot with two y-axes
> with different scales. That can be done in S-plus with a command of the
> following form:
> guiPlot( PlotType="Scatter",  DataSet="execon",
> Columns="years,hstart,ship", AxisType="Multiple Y" ),
> where years, hstart, and ship are columns in the dataset called execon.
> Is there an equivalent command in R?   I'd be most grateful for any
> suggestions.

No.  You can add a second set of axis labels with axis(), but there is no
built-in way to plot using the second y axis.


	-thomas

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list