How to insert angular brackets in plot text?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to insert angular brackets in plot text?

manojit
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?

Thanks,
manojit
Reply | Threaded
Open this post in threaded view
|

Re: How to insert angular brackets in plot text?

David Winsemius

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

______________________________________________
[hidden email] 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.