[R] Lattice graphics on Mac OS X

David A Richmond richmond at saintmarys.edu
Tue Apr 23 19:13:26 CEST 2002


On Tue, 23 Apr 2002 ripley at stats.ox.ac.uk wrote:

> On Mon, 22 Apr 2002, Etsuko Moriyama wrote:
>
> How graphics windows work depends on the platform in both R and S-PLUS.
> For R under Unix-alikes (which darwin is) there are no menus on a graphics
> window. (It is an R graphics window, not a Lattice window, BTW.)
> The Windows and Carbin ports of R do have such menus, as does the
> gnome GUI front-end for Unix.  (You might want to explore the latter if it
> is provided on your build.)

I used to use Carbon R since it had a graphics window, but found it to be
much slower for some things than Darwin-R. If you run Darwin R in
X-windows (XFree86) it will display graphics, but I found XFree86 somewhat
cumbersome to use with osX, so now I just run R in a Terminal window, and
use the following to direct output to a pdf file:

pdf(filename,horizontal=TRUE,paper="letter",enc="MacRoman")
# where filename = the full path of the file I want to create

# do the plotting commands here

dev.off(2)

and then view the resulting file using 'Preview'.

dave r.

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|David Richmond                It works on a          |
+ Dept. of Sociology          complex scientific      +
|Saint Mary's College          principle, known as    |
+ Notre Dame, IN 46556               "pot luck."      +
|574-284-4517                    - The Doctor         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list