Re: Adding a greek letter in Y-axis label using xpose.VPC
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 the
xpose.VPC command
# Here I update the label for the first plot
vpc_plots@plotList[[1]] <-
update(vpc_plots@plotList[[1]],ylab=expression(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
http://www.farmbio.uu.se/research/researchgroups/pharmacometrics/
Quoted reply history
On 18 Sep 2014, at 22:52 , Yulan Qi <[email protected]<mailto:[email protected]>> wrote:
Here is what I tested:
xpose.VPC (PI="lines", PI.real="lines",PI.ci=NULL,xlb=expression("Concentration
(" * 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=expression("Concentration (" * mu *
"g/L)"),xlb="",by="STRT") - not working and giving error message “Error in ylb
!= "Default" : comparison is not allowed for expressions”
Thanks,
Yulan
From: NIYI [mailto:[email protected]]
Sent: Thursday, September 18, 2014 11:26 AM
To: Yulan Qi
Subject: RE: [NMusers] Adding a greek letter in Y-axis label using xpose.VPC
Hi, Sharing the code you tried may help troubleshoot the issue.
________________________________
From: [email protected]<mailto:[email protected]>
To: [email protected]<mailto:[email protected]>
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 error
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
recipient(s). If you have received this communication in error, please notify
the sender by reply e-mail, and delete the original message and any
attachments. Any unauthorized disclosure, copying, or distribution of this
message (including the attachments), or the taking of any action based on it,
is strictly prohibited.
This message is intended only for the confidential use of the intended
recipient(s). If you have received this communication in error, please notify
the sender by reply e-mail, and delete the original message and any
attachments. Any unauthorized disclosure, copying, or distribution of this
message (including the attachments), or the taking of any action based on it,
is strictly prohibited.