[R-SIG-Mac] X11 plot title font

Xue, Liangjie ljxuechina at gmail.com
Tue Jul 14 01:52:59 CEST 2009

Hi Payam

Thanks for your reply. I forgot to mention that I already updated the
X11 from xquartz.macosforge.org, but still the same situation.
Actually, my biggest problem was I used savePlot a lot, which is a X11
specific command. So, I changed to use dev.copy instead of savePlot.
It maybe a good lesson for writing codes that will be run in different
platforms. I was only using Linux and window before, so I didn't have
any problem for the X11 device. However, it seems that the X11 device
in mac system is a little different.

For the same reason, using quartz() is not a good choice, since it is
only available in Mac. I would like to add a small piece of code at
the beginning to the script to set the device options according to
.Platform$OS.type. After that, always use dev.new() to get a new
device. In this way, the code will be more portable.


More information about the R-SIG-Mac mailing list