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

Gabor Grothendieck
Mon, 03 Aug 2009 18:29:47 -0000

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