NONMEM Users Network Archive

Hosted by Cognigen

RE: Changing axis label in ranram.vs.cov in XPOSE4

From: Siv Jönsson <Siv.Jonsson>
Date: Mon, 18 Feb 2019 13:59:26 +0000

Dear all.
I think you can try the following (Andy and Niclas, am I right?).

#Read in
xpdb <-"xxx")

#Provided ETA1 is the name of your variable in xpdb.

All the best, Siv

Siv Jönsson<>, PhD
Dept of Pharmaceutical Biosciences
Faculty of Pharmacy
Uppsala University
Phone: +46 (0)18 471 4315
Private: +46 (0)733 924 657<>

From: owner-nmusers> On Behalf Of Samuel Callisto
Sent: 18 February 2019 05:48
To: Paul Hutson <paul.hutson
Cc: nmusers <nmusers
Subject: Re: [NMusers] Changing axis label in ranram.vs.cov in XPOSE4

Hey Paul,

I found a workaround for this issue. It's not the most elegant, but it might push you in the right direction for a more elegant solution.

## Save the xyplot that is output by the function
fig <- ranpar.vs.cov(xpdb1, cex=0.5,x.cex=1.5,y.cex=1.5, page.numbers=F, main=NULL, scales = list(x=list(cex=1.5), y=list(cex=1.5)))

## Create custom list of labels, repeating each for the number of covariates included
label <- c(rep("IIV_CL",3), rep("IIV_Vc", 3))

## loop through the plots in your saved plot object
for(i in 1:length(fig
  ## assign the ith y-label to the ith plot
  fig ]$ylab[[1]] <- label[i]

## print figure to screen

There is almost certainly a better way of accomplishing this, but this will work for now. Good luck!
Samuel Callisto
PhD Candidate
Experimental and Clinical Pharmacology
University of Minnesota
717 Delaware St SE; Room 468
Minneapolis, MN 55455

On Fri, Feb 15, 2019 at 5:42 PM Paul Hutson <paul.hutson
Is there an easy way to change the axis labels in the ranpar.vs.cov routine (eg., from ETA1 to IIV_CL)
I’ve tried excluding PK parameters and leaving only ETAS in PATAB, and renaming the ETA column headers to my desired name (eg.,IIV_CL in PATAB), but that doesn’t work.
I have also have tried
                ranpar.vs.cov(xpdb1, cex=0.5,x.cex=1.5,y.cex=1.5, page.numbers=F, ylb=c("IIV_CL", "IIV_Vc", "IIV_Q", "IIV_Vp"),
                      main=NULL, scales = list(x=list(cex=1.5), y=list(cex=1.5)))
The ylb command plants all four labels on every plot.

Paul Hutson, PharmD, BCOP
UWisc School of Pharmacy
T: 608.263.2496
F: 608.265.5421

När du har kontakt med oss på Uppsala universitet med e-post så innebär det att vi behandlar dina personuppgifter. För att läsa mer om hur vi gör det kan du läsa här:

E-mailing Uppsala University means that we will process your personal data. For more information on how this is performed, please read here:
Received on Mon Feb 18 2019 - 08:59:26 EST

The NONMEM Users Network is maintained by ICON plc. Requests to subscribe to the network should be sent to:

Once subscribed, you may contribute to the discussion by emailing: