Hi, I am trying to produce a plot with an xlabel that reads (x >= 5%) with the >= turned into the correct epression. I can do this up to the percentage sign by specifiing xlab=expression(x>=5). Whatever I do to include the % sign as well doesn't seem to work. xlab=bquote(x>=5.("%")) almost works but includes brackets. Anyonw know how to solve this one Dan PS I am running R 2.9.0 -- ************************************************************** Daniel Brewer, Ph.D. Institute of Cancer Research Molecular Carcinogenesis Email: daniel.brewer at icr.ac.uk ************************************************************** The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Registered Office at 123 Old Brompton Road, London SW7 3RP. This e-mail message is confidential and for use by the a...{{dropped:2}}
Gabor Grothendieck
2009-Apr-28 10:43 UTC
[R] Mathematical label in a plot with a percent sign
Try: plot(0, main = ~ x >= 5 * "%") On Tue, Apr 28, 2009 at 6:37 AM, Daniel Brewer <daniel.brewer at icr.ac.uk> wrote:> Hi, > > I am trying to produce a plot with an xlabel that reads (x >= 5%) with > the >= turned into the correct epression. ?I can do this up to the > percentage sign by specifiing xlab=expression(x>=5). ?Whatever I do to > include the % sign as well doesn't seem to work. > > xlab=bquote(x>=5.("%")) almost works but includes brackets. > > Anyonw know how to solve this one > > Dan > > PS I am running R 2.9.0 > > -- > ************************************************************** > Daniel Brewer, Ph.D. > > Institute of Cancer Research > Molecular Carcinogenesis > Email: daniel.brewer at icr.ac.uk > ************************************************************** > > The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Registered Office at 123 Old Brompton Road, London SW7 3RP. > > This e-mail message is confidential and for use by the a...{{dropped:2}} > > ______________________________________________ > 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. >