On 08-Oct-10 12:44:12, Kari Ruohonen wrote: > Hi, > I wonder if this is something on my machine locally or R in general. > > When I do the following: >> plot(c(0,1),c(0,1),main=expression(paste(symbol("D"),"D",sep=""))) > > I get a plot with a title having uppercase delta followed by "D". But > in the following > >> pdf(file="deltaTest.pdf") >> plot(c(0,1),c(0,1),main=expression(paste(symbol("D"),"D",sep=""))) >> dev.off() > > the uppercase delta looks like O with overstrike slash, i.e. Ã. > > Other greek alphabets, such as Gamma, seem to work fine for pdf as > well. > > My sessioninfo for this is > >> sessionInfo() > R version 2.11.1 (2010-05-31) > x86_64-pc-linux-gnu > > locale: > [1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C > [3] LC_TIME=en_GB.UTF-8 LC_COLLATE=en_GB.UTF-8 > [5] LC_MONETARY=C LC_MESSAGES=en_GB.UTF-8 > [7] LC_PAPER=en_GB.UTF-8 LC_NAME=C > [9] LC_ADDRESS=C LC_TELEPHONE=C > [11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C > > attached base packages: > [1] stats graphics grDevices utils datasets methods > base > > Many thanks, > Kari
I had no problem withe your example. The PDF came out just like the graphic plot, with DELTA follow by D, whether I view it using acroread or gv. My sessionInfo: sessionInfo() R version 2.11.0 (2010-04-22) i486-pc-linux-gnu locale: [1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_GB.UTF-8 LC_COLLATE=en_GB.UTF-8 [5] LC_MONETARY=C LC_MESSAGES=en_GB.UTF-8 [7] LC_PAPER=en_GB.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base which is the same as yours (except that I'm using a slightly earlier version of R, and on i486 rather than x86_64. Debian Etch by the way). Ted. -------------------------------------------------------------------- E-Mail: (Ted Harding) <ted.hard...@wlandres.net> Fax-to-email: +44 (0)870 094 0861 Date: 08-Oct-10 Time: 14:19:48 ------------------------------ XFMail ------------------------------ ______________________________________________ R-help@r-project.org 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.