[R] Mathematical label in a plot with a percent sign

Daniel Brewer daniel.brewer at icr.ac.uk
Tue Apr 28 13:10:15 CEST 2009


That worked great.  Many thanks.

Dan

Gabor Grothendieck wrote:
> 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.
>>

-- 
**************************************************************

Daniel Brewer, Ph.D.

Institute of Cancer Research
Molecular Carcinogenesis
MUCRC
15 Cotswold Road
Sutton, Surrey SM2 5NG
United Kingdom

Tel: +44 (0) 20 8722 4109

**************************************************************

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




More information about the R-help mailing list