NONMEM Users Network Archive

Hosted by Cognigen

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

From: Samtani, Mahesh [PRDUS] <MSamtani>
Date: Thu, 1 Apr 2010 23:13:45 -0400

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


________________________________

From: martin [mailto:m.g.johnson
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: M.G.Johnson

-----Original Message-----
From: owner-nmusers
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


Received on Thu Apr 01 2010 - 23:13:45 EDT

The NONMEM Users Network is maintained by ICON plc. Requests to subscribe to the network should be sent to: nmusers-request@iconplc.com.

Once subscribed, you may contribute to the discussion by emailing: nmusers@globomaxnm.com.