[R] Lattice graphics on Mac OS X

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Tue Apr 23 09:12:34 CEST 2002


On Mon, 22 Apr 2002, Etsuko Moriyama wrote:

> I just started using R on Mac OS X.  I'm trying both of Carbon and
> Darwin version.   I used to use S-PLUS on Linux and want to use splom to
> do multi-plot.
>
> I looked at both Carbon and Darwin version, but Carbon version doesn't
> seem to have Lattice library.  I downloaded the binary for Darwin
> version.  I have XDarwin/OroborOSX installed on my Mac's (G4 Powerbook
> and G4 desktop).  I attached Lattice/Grid and MASS libraries.  I tried
> "pairs" function, and it worked.  But what I really want to do is to
> superimpose 2 different sets of multi-plots.  I did it before with splom
> on SPLUS.  And now I want to do it on R.  But when I tried, the trellis
> like graphic window pops out, but no graphics.  On SPLUS, the window had
> some menu for print etc, but no such thing on R's Lattice empty window.

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'm doing what I used to do on SPLUS.  But am I missing something?  Just
> a very simple example like:
>
> data(iris)
> splom(~iris[1:4])
>
> doesn't produce any graphics.  What I see is only a gray empty window
> with no menu or button...

That works under Linux and Windows, so presumably something is up with
your build of R.

> Is there anybody who could use trellis/Lattice graphics on OS X?  I'm
> using OSX 10.1.4.

More usefully, which version of R, lattice and grid are you using?
You said it was `gray': because of the bug the current version of lattice
for R 1.4.1 uses a white background, so I suspect yours is not current.

You may want to wait a week until R 1.5.0 is released. That will ship with
lattice, and the grid/lattice packages included have been considerably
improved since 1.4.1.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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