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 kind regards, -- Jonas Stein <news at 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
I don't think you can with the current version of ggplot2. There appears to be development work on the issue but It's beyond my level of knowledge to implement the developmental programming althought it looks good. https://groups.google.com/forum/?fromgroups=#!topic/ggplot2/mBdq01BxoKE seems to give a good idea of what has/is happening. John Kane Kingston ON Canada> -----Original Message----- > From: news at jonasstein.de > Sent: Wed, 12 Sep 2012 01:29:25 +0200 > To: r-help at stat.math.ethz.ch > Subject: [R] how to qplot two x-axis x1:Farenheit x2:Celsius > > 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 > > kind regards, > > -- > Jonas Stein <news at jonasstein.de> > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.____________________________________________________________ Publish your photos in seconds for FREE TRY IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if4
Maybe Matching Threads
- [PATCH] nv10/exa: Spring-cleaning
- [PATCH] drm/nouveau: Add fine-grain temperature reporting
- plot questions?-errors in persp(x1, x2, y) and contour(x1, x2, y)
- segfaults with 8 gig of ram
- Indexing in anova summary output of the form: summary(aov(y ~ x1, Error = (x1/x2)))