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

4 messages 3 people Latest: Sep 23, 2014

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

From: Yulan Qi Date: September 18, 2014 technical
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.
I have forwarded your query to Andy Hooker Robert J. Bauer, Ph.D. Vice President, Pharmacometrics, R&D ICON Development Solutions 7740 Milestone Parkway Suite 150 Hanover, MD 21076 Tel: (215) 616-6428 Mob: (925) 286-0769 Email: [email protected]<mailto:[email protected]> Web: http://www.iconplc.com/
Quoted reply history
From: [email protected] [mailto:[email protected]] On Behalf Of Yulan Qi Sent: Thursday, September 18, 2014 12:54 PM To: [email protected] Subject: [NMusers] Adding a greek letter in Y-axis label using xpose.VPC 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.
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.

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

From: Yulan Qi Date: September 23, 2014 technical
Hi Andrew, Yes, the new method works! Thanks for the help. Best, Yulan
Quoted reply history
From: Andrew Hooker [mailto:[email protected]] Sent: Tuesday, September 23, 2014 6:04 AM To: Yulan Qi Cc: Nmusers Subject: Re: [NMusers] 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/ 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. 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.