[R] graph label greek symbol failure

Gavin Simpson gavin.simpson at ucl.ac.uk
Tue Aug 18 10:17:25 CEST 2009


On Mon, 2009-08-17 at 11:51 +0100, e-letter wrote:
> Readers,
> 
> Previous questions about this requirement have been for m$ users, my
> failure occurs using linux.
> 
> I have tried to add the delta (δ) symbol to the y axis label and the
> result is &D, using the command:
> 
> ...ylab="δt"...

Works for me on Fedora 11 with the font packages mentioned in R
Installation and Admin manual.

> sessionInfo()
R version 2.9.1 Patched (2009-08-07 r49104) 
x86_64-unknown-linux-gnu 

locale:
LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

> 
> Any advice please?

plot(1:10, ylab = expression(delta*t))

?plotmath

If your question is rather why doesn't the "δ" glyph you enter at the
keyboard show up in the plot, I'm afraid I can't help. Perhaps something
to do with UTF-8 and locales and the available symbol set on the device
you are plotting on, but you'll need to provide more information (of the
sort requested in the posting guide) on your system and set-up.

HTH

G
-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
 Dr. Gavin Simpson             [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,          [f] +44 (0)20 7679 0565
 Pearson Building,             [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London          [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT.                 [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%




More information about the R-help mailing list