Hello, please excuse me if this is a repost, I think I got confused
about how to reply. Anyway, I posted the message below about a day and a
half ago through Nabble but have not been cleared until today. Here it
goes again. Please bear with me I will get better with time.
----Start of message sent about two days ago---
Hello all, thank you very much for the replies and I am very sorry for
being so late to come back to the discussion, I was on a field trip
without internet access.
@ Ben
I have the problem any time I try to use the mu symbol or the degree
symbol using expression() (the only way I know how to do it). Yvonnick's
code is a good example, I have just added the mu and the degree symbol:
pdf("Test.pdf")
plot(1:10,xlab=expression(mu), ylab=expression(C*degree~pi))
dev.off()
Even if I don't make the pdf (i.e. just plot on the X11 device), like in
Yvonnick's example, the degree symbol is still showing as that
gamma-like symbol, pi is shown like an inequality symbol but mu is shown
right (on the X11).
@ Erik and Yvonnick
I think Yvonnick's problem is the same I have (i.e. it is not restricted
to pdf files, it also happens in the X11 device, jpg and png). Further,
if I create a pdf in Ooo Writer that contains mu, pi or degree symbols
and I export them as pdf, they are rendered just fine (similar to what
Peter reported, not sure whether he has problems in the X11 device too),
the problem is restricted to R-generated graphs.
I am going to try Erik's suggestion tonight (sorry I could not try it
before posting, I am still catching up with work accumulated from my
trip). However, would this fix the problem in rendering in the X11
device? I also feel this might not be just a pdf-viewer issue, but I am
an absolute novice.
----End of message sent about two days ago---
Since then, i tried Erik's suggestion, but I could not find either
'~/.fonts.conf' or '/etc/fonts/local.conf' in my system (at least with
those exact names).
I also got a reply from Prof. Ripley (quote below), I am working on it
now, but maybe more experienced users will be more efficient in using it
than me.
"Your first para confirms it. The problem is font selection by
fontconfig, which R's X11 device and Evince etc use and Xpdf or Acroread
do not. See ?X11 for ways to debug this."
Thanks!
Eduardo
> sessionInfo()
R version 2.11.1 (2010-05-31)
i486-pc-linux-gnu
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=C LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.