Skip to content
Prev 1236 / 15075 Next

saving graphs; jpeg(), bitmap()

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

            
Um... why do you use XDarwin instead of the supported Apple X11 which 
comes with Mac OS X? The GUI (i.e. that button) is designed to work 
with Apple's X11, because it's the official standard (you don't even 
have to download it..). Last time I saw XDarwin its WM were much less 
well integrated that quartz-wm...

You can still use XDarwin if you feel like it, but in any case make 
sure your DISPLAY is set - if in doubt, type
Sys.setenv(DISPLAY=":0.0")
in R before using those graphics devices.
gs is basically a program running on most platforms, including Mac - if 
you use TeX then you should have gs already installed (or you can get 
it via i-Installer along with the TeX stuff).
PDF is actually a very good format supporting both bitmap (cf 
PhotoShop) and vector graphics (cf Illustrator) - it's even better than 
old PostScript, because it supports transparency and other cool things. 
Mac OS X actually uses PDF as its main display format. In fact PS used 
to be the standard for publishing and nowadays PDF is replacing that 
role. As a Mac user you're in the fortunate position of having many 
good PDF tools at your fingertips (in contrast to the Win folks :P).

Cheers,
Simon