[R] Math notation in a title
David Winsemius
dwinsemius at comcast.net
Wed Oct 16 18:31:16 CEST 2013
On Oct 15, 2013, at 10:52 AM, David Arnold wrote:
> Hi,
>
> I'd like to put the following in a main title of a plot.
>
> <http://r.789695.n4.nabble.com/file/n4678299/junk.png>
>
> Can someone show me how to do this?
?plotmath
plot(1, main=expression("Pareto Distribution:"~alpha==2*","~italic(y)[italic(m)]==3) )
That italic-y is not as "cursive" as your example, but perhaps you can use a different font. If that is your desire then look at the last examples in ?points. (It always has seemed strange that so much useful stuff about text/font output is located in the help page for points, but there is a link to that page near the end ofhte ?plotmath page.)
--
David Winsemius
Alameda, CA, USA
More information about the R-help
mailing list