Re: [R] Writing Text into Plots

From: Duncan Murdoch <>
Date: Thu 05 Oct 2006 - 20:56:04 GMT

On 10/5/2006 4:10 PM, Lothar Botelho-Machado wrote:
> 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 mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Fri Oct 06 07:00:20 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 05 Oct 2006 - 22:30:08 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.