[R] special symbols into a text string

S Ellison S.Ellison at lgc.co.uk
Mon Mar 15 03:13:20 CET 2010

See ?plotmath,  especially the examples.


>>> Gerard Smits <g_smits at verizon.net> 03/14/10 3:38 PM >>>

I am trying to put a few special symbols into a string to place on a
graph (e.g., >= and superscript 2).  

This clearly works, but does not look good:   text<-c("x2", "A>=B")

I tried pasting in the >= symbol, but just comes out as an =.

I have tried expression() with no luck:  text<-c("x2", expression(x^2))

Any help appreciated.


	[[alternative HTML version deleted]]

R-help at r-project.org mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.

This email and any attachments are confidential. Any use...{{dropped:8}}

More information about the R-help mailing list