Skip to content
Prev 30535 / 398506 Next

cannot create postscript files with trellis graphics inside a function

Dear Faheem,
At 11:13 PM 4/13/2003 -0400, Faheem Mitha 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 hope that this helps,
  John
-----------------------------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
email: jfox at mcmaster.ca
phone: 905-525-9140x23604
web: www.socsci.mcmaster.ca/jfox
-----------------------------------------------------