[R] Multiple (7) Y axes?

Jim Lemon jim at bitwrit.com.au
Thu Jun 16 11:25:17 CEST 2011


On 06/16/2011 07:12 PM, Philip Rhoades wrote:
> People,
>
> I want to create seven plots on the one graph - each with it's own Y
> axis and scale - I want the plots overlaid because it is the shape of
> the graphs that I want to compare, not so much the values. I have found
> examples where people show how to put two Y axes on the left of the plot
> but I couldn't find examples of any more than that - is it possible?
>
Hi Phil,
You could do something like this by plotting the first plot, adding the 
subsequent plots with "lines" or "points" and stacking the axes using 
the "pos" argument that allows you to offset the axis.

Jim



More information about the R-help mailing list