Skip to content
Back to formatted view

Raw Message

Message-ID: <505051C8.4000400@bitwrit.com.au>
Date: 2012-09-12T09:11:36Z
From: Jim Lemon
Subject: how to qplot two x-axis x1:Farenheit x2:Celsius
In-Reply-To: <l3u4i9-437.ln1@news.jonasstein.de>

On 09/12/2012 09:29 AM, Jonas Stein wrote:
> Hi,
>
> how can i plot two different x axis in a ggplot2 qplot?
> I want to plot Farenheit and Celsius in one diagram.
> x1:Farenheit x2:Celsius
>
Hi Jason,
Here's a basic example of how to do this sort of thing.

degC<-seq(-40,120,by=20)
plot(degC,1:9)
axis(3,at=degC*1.4+32)
mtext("degF",3,line=2)

Jim