Skip to content

Two Y axes (same scale) in ggplot2 or plot

4 messages · Gary Dong, Duncan Murdoch

#
On 08/05/2012 3:23 PM, Gary Dong wrote:
In base graphics, you can have as many axes as you like, displaying 
anything.  Use the axis() function.  See ?axis for the arguments that 
determine placement, ticks, etc.

I would guess the same flexibility is there in ggplot2, but I don't know 
how to do it.

Duncan Murdoch
#
On 09/05/2012 10:46 AM, Gary Dong wrote:
I don't understand what you want.  Could you give an example that comes 
close, and explain what is wrong with it?

Duncan Murdoch