[R] Writing Text into Plots

Marc Schwartz MSchwartz at mn.rr.com
Thu Oct 5 22:49:30 CEST 2006


On Thu, 2006-10-05 at 22:10 +0200, Lothar Botelho-Machado wrote:
> 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, which BTW, is listed in the "See Also" section of ?text

HTH,

Marc Schwartz



More information about the R-help mailing list