[R-SIG-Mac] saving graphs; jpeg(), bitmap()

Rob J Goedman goedman at mac.com
Thu Dec 9 00:28:33 CET 2004


On Dec 8, 2004, at 2:50 PM, Tiago R Magalhaes wrote:

> a) when using jpeg() I seem to be missing the X11 server. I have X11 
> on my computer and it works fine. (XDarwin 1.3b4). On the R menu, 
> under Miscillaneous there is a Run X11 server. When I lauch it reports 
> an error:  "2004-12-08 22:24:13.082 open[10513] Couldn't launch 
> application:  X11.app"

Below an example of how I use jpeg. Make sure you start X11, either 
from R Console toolbar,
from Finder or the dock (you can close the X11 command window but *not 
*X11 - i.e. notice
the little black triangle if X11 is in your dock):

op <- par(mfrow=c(1, 2))	# 1 row, 2 plots in this example
boxplot(rnorm(25) , horizontal=T)
par(op)	# reset to previous par() settings

Let me know if this works,

More information about the R-SIG-Mac mailing list