[R] mathematical symbols in plots

From: Sebastian Weber <sebastian.weber_at_physik.tu-darmstadt.de>
Date: Wed 03 Jan 2007 - 15:36:51 GMT

Hello everyone!

I'm trying to plot some mathematical expression along my axis, but demo(plotmath) did not have the symbol I was looking for. In particular, I would like to denote the mean of an observable by writing


which I tried to enter with

expression(group("<", k, ">"))

However, my naive try doesn't work and the help doesn't want to tell me, does someone know?

And here another one: How can I sepcify which fonts get used with which R prints those mathematical symbols? Since I finally include my plots in latex-documents as eps, I would love to use the same font-encoding for all postscript stuff. A problem in the past has been, that R embedded it's own font within the ps-files generated. These were not compatible with the fonts used at the magazine where I published my document. This lead to quite some confusion as \gamma became g and so on. Any solution to this problem? Any hint? As I'm not too much into font-encoding, I have actually no real clue where to even start searching.

Thank you very much for any help.


Sebastian Weber

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 and provide commented, minimal, self-contained, reproducible code. Received on Thu Jan 04 08:41:57 2007

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 04 Jan 2007 - 08:30:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.