RE: Customize the design aspects of the VPC plots in xpose

From: Mahesh Samtani Date: April 02, 2010 technical Source: mail-archive.com
Hello, Many thanks to all who responded so quickly. Here is the code that worked: xpose.VPC (vpc.info="vpc1/vpc_results.csv", vpctab="vpc1/vpctab1", PI="NULL", by="STRT", PI.ci="area", PI.real=TRUE,type="p",main ="Visual Predictive Check\nPhase X Studies: DEF, PQR, LMN",PI.limits=c(0.05,0.95),layout=c(4,2,1),xlb="Time (week)",ylb="Concentration (ng/mL)",strip=strip.custom(factor.levels=c("A mg","B mg","C mg","D mg","E mg","F mg","G mg","H mg")),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)) )) Sincere Thanks, Mahesh
Quoted reply history
________________________________ From: martin [mailto:[email protected]] Sent: Thu 4/1/2010 5:08 PM To: Samtani, Mahesh [PRDUS]; 'nmusers' Subject: RE: [NMusers] Customize the design aspects of the VPC plots in xpose Hi Mahesh, Question A: We need to change the strip function to customize the names (labels). Please see the command as below xpose.VPC (vpc.info="vpc1/vpc_results.csv", vpctab="vpc1/vpctab1",PI="NULL", by="STRT", PI.ci="area", PI.real=TRUE,type="p",main ="Visual Predictive Check\nPSY-xxxx Study",pch=16,PI.limits=c(0.05,0.95), strip=strip.custom(factor.levels=c("Dose:10 mg","Dose:20 mg","Dose:30 mg"), strip.names=T)) Question B: Please try xlb, ylb instead of xlab and ylab to change the axis labels. This one works with my run. Question C: I do not know. Regards, Martin Johnson PhD Student University of Groningen, The Netherlands Tel: +31 50 363 7627 Fax: +31 50 363 3247 Room: (3211) 4.73 E-mail: [email protected] -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Samtani, Mahesh [PRDUS] Sent: 01 April 2010 20:29 To: nmusers Subject: [NMusers] Customize the design aspects of the VPC plots in xpose Hello, I am trying to customize the design aspects of the VPC plots being made with xpose after a PsN run. This is how far I have reached: xpose.VPC (vpc.info="vpc1/vpc_results.csv", vpctab="vpc1/vpctab1", PI="NULL", by="STRT", PI.ci="area", PI.real=TRUE,type="p",main ="Visual Predictive Check\nPSY-xxxx Study",pch=16,PI.limits=c(0.05,0.95)) I need to make a few changes and I am hoping someone could help me: a) I need to change the multi-panel strip header. Instead of the numbers under STRT I wish to use "Dose: X mg" b) xlab and ylab don't work. How can I rename the x and y axis c) I need to change the units of the X and Y axis values (need to change time from hours to days). DV is log-transformed and I wish to retain the y-axis on a log scale but the values of the Y-axis should be displayed in concentration (ng/mL, instead of the current log-transformed values). Please help, Mahesh
Apr 01, 2010 Mahesh Samtani Customize the design aspects of the VPC plots in xpose
Apr 01, 2010 Martin RE: Customize the design aspects of the VPC plots in xpose
Apr 02, 2010 Mahesh Samtani RE: Customize the design aspects of the VPC plots in xpose