On Nov 23, 2012, at 12:20 PM, mee1d3hs wrote:
The code
hist(new, main=bquote("Heart Attack (" * bar(X)==.(round(mean(new),
1)) *
")"))
does not work on 2.15.2 on OSX. the histogram is generated, but the
title
does show at all, which kind of tells me the bquote expression is
failing
Works fine for me. I just updated to 2.15.2 today.
Used 1:4 as the value for new and got he correct title.
I would appreciate any help in making this work, it seems it should
be easy,
but somehow it is not. I tried using substitute, and many other ways
with no
help
> sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: i386-apple-darwin9.8.0/i386 (32-bit)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] survey_3.29 ggplot2_0.9.2.1
loaded via a namespace (and not attached):
[1] colorspace_1.2-0 dichromat_1.2-4 digest_0.5.2
[4] grid_2.15.2 gtable_0.1.1 labeling_0.1
[7] MASS_7.3-22 memoise_0.1 munsell_0.4
[10] plyr_1.7.1 proto_0.3-9.2 RColorBrewer_1.0-5
[13] reshape2_1.2.1 scales_0.2.2 stringr_0.6.1
[16] tools_2.15.2
David Winsemius, MD
Alameda, CA, USA
______________________________________________
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.