> [mailto:r-help-boun...@r-project.org] On Behalf Of William Dunlap
> Subject: Re: [R] characters, mathematical expressions and computed values
> 
> I think that bquote, with its .() operator, suffices for 
> [almost?] any single title;
> ...
> E.g.,
>   hist(new, main=bquote("Heart Attack (" * bar(X)==.(mean(new)) * ")")) 

In this instance, using 
hist(new, main=bquote( "Heart Attack  " * (bar(X) ==.( mean(new) )) ) )

improves the parentheses slightly, as it uses plotmath parentheses instead of 
forcing text parentheses. 

Otherwise I agree completely; bquote is a neat way of doing the job.

S Ellison

*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}

______________________________________________
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.

Reply via email to