Skip to content
Prev 228503 / 398500 Next

, how to express bar(zeta) in main title in boxplot

On 2010-07-22 11:44, Marcus Liu wrote:
A reproducible example with the exact error message would
be good. Anyway, it seems pretty clear what you want and
one solution is to _not_ use 'main='. For base graphics,
I usually prefer to add titles with the title() function
which will work here.

a <- pi
boxplot(rnorm(200))
title(bquote(paste(.(a), ": ", bar(zeta),
       " Boxplot from 2001 to 2009", sep = "")))

It seems that setting main=<...> where <...> contains
bquote() works with plot(), but not with boxplot().

   -Peter Ehlers