[R] graphs with two different y-scales

Jerome Asselin jerome at hivnet.ubc.ca
Wed May 21 00:09:00 CEST 2003


First, you have to choose a common scaling for both of your y-variates, so 
that you can use that scaling to plot your two variables. If you want to 
plot curves, then read ?curve.

Then, you can use the axis() function to define multiple (i.e. two) axes 
for your y-variates.

HTH,
Jerome


On July 25, 2003 01:49 pm, Nelson wrote:
> I am trying to put in the same graph two functions with different y
> scales. Can anyone help me on how to do it? Nelson
>
> 	[[alternate HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help




More information about the R-help mailing list