mahesh samtani
2010-Jul-16 16:38 UTC
[R] Toggle between the various pages for multi-page figures
Hello, I am a new R user having transitioned over from S-plus recently. I have a question that is probably very trivial but I am having trouble finding a solution. In S-plus, graphic pages are created as tabs when multi-page figures are created. I have shown the R code for xpose.VPC (a function within library xpose4 for R) where I want the figure from each Strata (STRT) to displayed on a different page. When I run the code, the pages just zoom by and I was wondering if I could toggle between the various pages. I can only export the last of the 8 pages that are created with the code below (and I wish to export all 8 pages not just the last one): xpose.VPC (vpc.info="vpc1/vpc_results.csv", vpctab="vpc1/vpctab1", PI="NULL", by="STRT", PI.ci="area", PI.real=TRUE,type="n", PI.limits=c(0.05,0.95),*layout=c(1,1,8)*,xlb="Time (week)",ylb="Concentration (ng/mL)", scales = list( x = list(at=seq(0,3360,by=336) , labels=seq(0,20,by=2 )), y list(at=log(c(.3,1,3,7.5,20,50,150)), labels=c(.3,1,3,7.5,20,50,150)) )) Please help, MNS [[alternative HTML version deleted]]
Uwe Ligges
2010-Jul-18 17:20 UTC
[R] Toggle between the various pages for multi-page figures
On 16.07.2010 18:38, mahesh samtani wrote:> Hello, > > I am a new R user having transitioned over from S-plus recently. I have a > question that is probably very trivial but I am having trouble finding a > solution. In S-plus, graphic pages are created as tabs when multi-page > figures are created. I have shown the R code for xpose.VPC (a function > within library xpose4 for R) where I want the figure from each Strata (STRT) > to displayed on a different page. When I run the code, the pages just zoom > by and I was wondering if I could toggle between the various pages. I can > only export the last of the 8 pages that are created with the code below > (and I wish to export all 8 pages not just the last one):In order to "export": Better start the appropriate graphics device (such as pdf()) before you start plotting and when finished plotting ask R to dev.off(). All your graphics are collected in the file(s) in the end which is a bit device dependent. See you favorite device's help page for details. Uwe Ligges> > > xpose.VPC (vpc.info="vpc1/vpc_results.csv", vpctab="vpc1/vpctab1", > > PI="NULL", by="STRT", PI.ci="area", PI.real=TRUE,type="n", > > PI.limits=c(0.05,0.95),*layout=c(1,1,8)*,xlb="Time > (week)",ylb="Concentration (ng/mL)", > > scales = list( x = list(at=seq(0,3360,by=336) , > labels=seq(0,20,by=2 )), > > y > list(at=log(c(.3,1,3,7.5,20,50,150)), labels=c(.3,1,3,7.5,20,50,150)) )) > > > > Please help, > > MNS > > [[alternative HTML version deleted]] > > ______________________________________________ > 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.