[R] cannot create postscript files with trellis graphics inside a function

Faheem Mitha faheem at email.unc.edu
Mon Apr 14 17:38:42 CEST 2003



On Mon, 14 Apr 2003, John Fox wrote:

> Lattice-graphics functions return objects rather than drawing plots as side
> effects. When you call a lattice function such as densityplot directly at
> the command plot, print is invoked implicitly and "prints" the plot. Within
> a function, you have to call print explicitly -- e.g., print(densityplot(~x)).

I see. And also print(histogram()), I presume? Thanks.

                                                          Faheem.



More information about the R-help mailing list