[R] Lattice graphics on Mac OS X

Etsuko Moriyama emoriyama2 at unlnotes.unl.edu
Tue Apr 23 19:26:54 CEST 2002


Do any of Lattice function (splom etc.) show the graphics on the graphic 
window on your machine?  It works with non-Lattice graphics like pairs, 
but not with Lattice.

But I will try your suggestion.  Actually I used postscript function to 
download the graphics on a file.  But I tried it only with pairs, but 
not with splom.  I should have thought about it!

I haven't tried pdf, but with postscript, strangely, only plots and 
texts become correctly horizontal, but axes stay in vertical mode.  So I 
have to rotate manually to correct the problem.  Somehow 
"horizontal=FALSE" works correctly for both plots/texts and axes.

Etsuko

On Tuesday, April 23, 2002, at 12:13 PM, David A Richmond wrote:
>
> 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         |
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
>
>

-----------------------------------------------
Etsuko Moriyama
University of Nebraska
Lincoln, NE 68588-0660

Email:  emoriyama2 at unl.edu

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