Skip to content

Mathematical label in a plot with a percent sign

3 messages · Gabor Grothendieck, Daniel Brewer

#
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
#
Try:

plot(0, main = ~ x >= 5 * "%")
On Tue, Apr 28, 2009 at 6:37 AM, Daniel Brewer <daniel.brewer at icr.ac.uk> wrote:
#
That worked great.  Many thanks.

Dan
Gabor Grothendieck wrote: