Re: [R] Expression: +/-sigma

2011-07-27 Thread David Winsemius
On Jul 27, 2011, at 8:57 AM, ogbos okike wrote: Dear List, I am trying to label a plot with the symbol +/- sigma. Using something like - expression (2*sigma) gives me the symbol 2ó. However, adding +/- to it beats me. The code I am using is: plot(x,y,type="l",main=" expression(paste("±"

Re: [R] Expression: +/-sigma

2011-07-27 Thread Yves REECHT
Hi, You may try something like: plot(rnorm(10), rnorm(10), main=expression("" %+-% 2*sigma)) HTH, Yves Le 27/07/2011 14:57, ogbos okike a écrit : > Dear List, > I am trying to label a plot with the symbol +/- sigma. Using something like > - expression (2*sigma) gives me the symbol 2ó. How

[R] Expression: +/-sigma

2011-07-27 Thread ogbos okike
Dear List, I am trying to label a plot with the symbol +/- sigma. Using something like - expression (2*sigma) gives me the symbol 2ó. However, adding +/- to it beats me. The code I am using is: plot(x,y,type="l",main=" expression(paste("±", plain(2*ó)),sep=""). Any suggestion will be appreciated.