[R] boxplot( ) headers with Greek letters, values, and text

Johnson, Roger W. Roger.Johnson at sdsmt.edu
Mon Aug 3 20:47:53 CEST 2009


Thank you! (This works.)

Roger

________________________________________
From: Gabor Grothendieck [ggrothendieck at gmail.com]
Sent: Monday, August 03, 2009 12:29 PM
To: Johnson, Roger W.
Cc: r-help at R-Project.org
Subject: Re: [R] boxplot( ) headers with Greek letters, values, and text

Try this:

boxplot(1:5, main = bquote(mu == .(mu) * "," ~ lambda == .(lambda) *
"," ~ trunction == .(truncation) * "," ~ N[T] == .(n)))


On Sun, Aug 2, 2009 at 8:37 PM, Johnson, Roger
W.<Roger.Johnson at sdsmt.edu> wrote:
> Hi -
>
> I've been using the option
>
> main=bquote(paste(mu==.(mu),", ",lambda==.(lambda),", ",truncation==.(truncation),", ",N[T]==.(n)))
>
> to produce a title when using the "plot" command - a title which includes variable names (two Greek)
> along with their values.
>
> The above option, however, does not work within the "boxplot" command.
>
> Any suggestions on how I can produce the same title using the boxplot command?
>
> Thank you,
>
> Roger
> ______________________________________________
> 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