[R] expression in xlab for a plot
arun
smartpink111 at yahoo.com
Wed Jan 1 16:36:19 CET 2014
Hi,May be this helps:
hist(runif(1000,0,100),xlab=bquote(AUC[.(low) - .(high)]~ (xyz)),ylab="Frequency")
A.K.
On Wednesday, January 1, 2014 10:30 AM, Andras Farkas <motyocska at yahoo.com> wrote:
Dear All,
Happy new year!
wonder if you could help with the following:
we have:
hist(runif(1000,0,100),xlab=expression(AUC[0 - 24]~ (xyz)),ylab="Frequency")
the plan is to have part of the xlab expression change dynamically, specifically the values of 0 and 24 should be able to update 'automatically" , based on vectors low and high, so if we had:
low <-24
high <-48
then we should have this:
hist(runif(1000,0,100),xlab=expression(AUC[24 - 48]~ (xyz)),ylab="Frequency")
appreciate your insights,
Andras
[[alternative HTML version deleted]]
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list