baptiste auguie wrote:
plot(0, xlab=bquote(theta *" = "* .(x)))
or probably easier use == as in
plot(0, xlab=bquote(theta == .(x)))
Uwe Ligges
?substitute
?bquote
HTH,
baptiste
2009/9/21 Jarrod Hadfield <j.hadfi...@ed.ac.uk>:
Hi,
I want to have a legend that is a mixture of numbers and symbols, and have
found no way of achieving this.
For example, if I want theta="x" or theta=2 this is easily achieved.
plot(0, xlab=expression(paste(theta, "= x")))
plot(0, xlab=expression(paste(theta, "= 2")))
However, if x is some numeric variable and I want to plot theta=x, how is
this done?
Thanks for any help,
Jarrod
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
______________________________________________
R-help@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.
______________________________________________
R-help@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.
______________________________________________
R-help@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.