[R] special simbol (±) in a legend

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Jun 25 13:22:23 CEST 2012


The posting guide asked for 'at a minimum' information, which you have 
not provided (nor do we know what graphics device this is).

But on many OSes and devices simply use the Unicode character "\u00b1". 
  Or use plotmath (see ?plotmath).

On 25/06/2012 12:03, gianni lavaredo wrote:
> dear reserachers,
>
> I am looking for a expression about a special symbol (±) in a Legend and
> add on front of "Mean ± SD" the symbol of bracket
>
>
> sorry if the example is not great
>
> disptest <- matrix(rnorm(10),nrow=10)
> disptest.means<- rowMeans(disptest)
> plot(1:10,disptest.means)
> dispersion(1:10,disptest.means,(disptest.means+disptest
> ),(disptest.means-disptest ),intervals=FALSE,arrow.cap=0.001,arrow.gap=0)
>
> legend("topleft",
> legend=c("Mean","Mean +/- SD"),
> pch=c(1,NA),
> bty="n",cex=1.3)
>
> thanks for all suggestions
> Gianni
>
> 	[[alternative HTML version deleted]]
>
>
>
> ______________________________________________
> 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.
>


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list