[R] How to insert angular brackets in plot text?

David Winsemius dwinsemius at comcast.net
Sat May 8 20:16:01 CEST 2010


On May 8, 2010, at 10:46 AM, manojit wrote:

>
> I am somewhat of a newbie, and trying to insert angular brackets in  
> my axis
> label, something like expression(group("(",italic(N),")")) that  
> seems to
> work fine, but returns "invalid delimiter" error when I replace the  
> "(",")"
> pair with "<",">". The alternative  
> expression(paste("<",italic(N),">")) does
> not look *mathy*. Any help?

Either of these:

plot(1,1, xlab=expression("<"~group("",italic(N),"")~">"))
plot(1,1, xlab=expression("<"~italic(N)~">"))

>
-- 

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list