[R] Per mille symbol in plot axis labels

Paul Murrell p.murrell at auckland.ac.nz
Wed Nov 27 02:11:10 CET 2002


Hi


Andrew Robinson wrote:
> 
> Hey all R-gurus,
> 
> I'm trying to find a way to represent the "per mille" symbol in my axis
> labels.  It looks like the percent sign but has two zeros in the
> denominator (in case I have the name wrong!)
> 
> I took a look at example(Hershey) (which are delightful) but it wasn't
> there.


If you are on Windows, this should work for you:

    plot(1:10, ylab="\211")

If you are on a Mac, "\344" might do the trick (can't check this myself
though).

On UNIX, I don't know how to display it on screen, but you can produce
postscript and/or pdf output by specifying Windows encoding and using
the example above, i.e., something like ...

    postscript(encoding="WinAnsi.enc")
    plot(1:10, ylab="\211")
    dev.off()

Hope that helps.

Paul
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list