NONMEM Users Network Archive

Hosted by Cognigen

Re: Adding a greek letter in Y-axis label using xpose.VPC

From: Andrew Hooker <Andrew.Hooker>
Date: Tue, 23 Sep 2014 13:04:24 +0000

Hi Yulan,

You have found a feature (ok….maybe a bug)!

To get around this problem before the next release of xpose on CRAN you can=
 use the following code:

# create your VPC and save the results as a variable
vpc_plots <- xpose.VPC()

# update the y-axis label of any plot in the list of plots created using th=
e xpose.VPC command
# Here I update the label for the first plot
vpc_plots
(hat(beta)))

Hope this helps.

Best regards,
Andy

Andrew Hooker, Ph.D.
Associate Professor of Pharmacometrics
Dept. of Pharmaceutical Biosciences
Uppsala University
Box 591, 751 24, Uppsala, Sweden
Phone: +46 18 471 4355
Mobile: +46 768 000 725
www.farmbio.uu.se/research/researchgroups/pharmacometrics/<http://www.farmb=
io.uu.se/research/researchgroups/pharmacometrics/>





On 18 Sep 2014, at 22:52 , Yulan Qi <YQi
te:

Here is what I tested:

xpose.VPC (PI="lines", PI.real="lines",PI.ci=NULL,xlb=expression("C=
oncentration (" * mu * "g/L)"),ylb="",main="",by="STRT") -working
xpose.VPC (PI="lines", PI.real="lines",PI.ci=NULL,main=expression("=
Concentration (" * mu * "g/L)"),xlb="",ylb="",by="STRT",) -working
xpose.VPC (PI="lines", PI.real="lines",PI.ci=NULL,main="",ylb=exp=
ression("Concentration (" * mu * "g/L)"),xlb="",by="STRT") - not workin=
g and giving error message “Error in ylb != "Default" : comparison is n=
ot allowed for expressions”


Thanks,
Yulan


From: NIYI [mailto:niyiadedokun
Sent: Thursday, September 18, 2014 11:26 AM
To: Yulan Qi
Subject: RE: [NMusers] Adding a greek letter in Y-axis label using xpose.VP=
C

Hi, Sharing the code you tried may help troubleshoot the issue.

________________________________
From: YQi
To: nmusers
Subject: [NMusers] Adding a greek letter in Y-axis label using xpose.VPC
Date: Thu, 18 Sep 2014 16:54:29 +0000
Dear All,

I want to add a greek letter in Y-axis label of a VPC plot using xpose.VPC =
plotting function. I am able to do it with expression() in X-axis and main =
title. However, when I use it in Y-axis, it didn’t work and gave me an er=
ror message “Error in ylb != "Default" : comparison is not allowed for =
expressions”. Does anyone know how to add a greek letter in Y-axis label =
when using xpose.VPC function for a VPC plot?



Thanks,

Yulan


This message is intended only for the confidential use of the intended reci=
pient(s). If you have received this communication in error, please notify t=
he sender by reply e-mail, and delete the original message and any attachme=
nts. Any unauthorized disclosure, copying, or distribution of this message =
(including the attachments), or the taking of any action based on it, is st=
rictly prohibited.

This message is intended only for the confidential use of the intended reci=
pient(s). If you have received this communication in error, please notify t=
he sender by reply e-mail, and delete the original message and any attachme=
nts. Any unauthorized disclosure, copying, or distribution of this message =
(including the attachments), or the taking of any action based on it, is st=
rictly prohibited.


Received on Tue Sep 23 2014 - 09:04:24 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.