[R] Writing Text into Plots

Duncan Murdoch murdoch at stats.uwo.ca
Thu Oct 5 22:56:04 CEST 2006


On 10/5/2006 4:10 PM, Lothar Botelho-Machado wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hello,
> 
> 
> I have a simple question on the text() method in plots, e.g.:
> 
> text(3,4,adj=1,cex=1.0, expression(alpha == beta))
> 
> I know there exists a lot more like frac(), etc which could be used for
> expression. But a help(frac) doesn't return any results - where do I
> have to look for a documentation of possible text commands?
> 
> More in detail I'm searching for how to set an index like mu_{1} and
> mu_{2} ? And how to get something like a bar over a character like \bar x ?

See ?plotmath, and demo(plotmath).

Duncan Murdoch



More information about the R-help mailing list