Skip to content
Back to formatted view

Raw Message

Message-ID: <A4E5A0B016B8CB41A485FC629B633CED47A5BD7014@GOLD.corp.lgc-group.com>
Date: 2012-10-12T12:35:38Z
From: S Ellison
Subject: characters, mathematical expressions and computed values
In-Reply-To: <E66794E69CFDE04D9A70842786030B93371604@PA-MBX04.na.tibco.com>

> [mailto:r-help-bounces at 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}}