Re: [R] greek symbols using pch

From: Marc Schwartz <MSchwartz_at_mn.rr.com>
Date: Mon 10 Oct 2005 - 12:34:57 EST

On Mon, 2005-10-10 at 12:02 +1000, FISCHER, Matthew wrote:
>
> Hi R-users,
>
> In a plot, can I specify pch to be a greek symbol? (I looked at
> show.pch() in the Hmisc package but couldn't see the right symbols in there).
> If not, I guess I can get around this using text(x,y,expression()).
>
> cheers!,
>
> Matt.

You will need to use text() in order to plot greek characters as plotting symbols.

The 'pch' argument (or par("pch")) must be a single character or an integer specifying one of the symbols as seen in ?points or as you noted in Frank's show.pch().

See ?plotmath for more information on plotting mathematical expressions.

HTH, Marc Schwartz



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Oct 10 12:39:11 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:33:52 EST