Skip to content
Back to formatted view

Raw Message

Message-ID: <4940D726.4090800@bitwrit.com.au>
Date: 2008-12-11T09:02:30Z
From: Jim Lemon
Subject: 2-Y-axes on same plot
In-Reply-To: <BB4F030A-582C-4D31-BCA1-C2BAF2989964@mac.com>

Joe Trubisz wrote:
> Hi...
>
> Is this possible in R?
>
> I have 2-sets of data, that were collected simultaneously using 
> 2-different data acquisition schemes.
> The x-values are the same for both.
> The y-values have different ranges (16.4-37.5 using one method, 
> 557-634 using another).
>
> In theory, if you plot both plots on top of each other, the graphs 
> should overlap. The problem I'm having is trying to have to different 
> sets of y-values appear in the same graph, but scaled in the same 
> vertical space. I've seen this done in publications, but not sure if 
> it can be done in R.
Hi Joe,
Check out twoord.plot in the plotrix package.

Jim