Skip to content
Prev 42899 / 398506 Next

Multiple groupedData plots in a postscript file using a loop

Karl Knoblick wrote:
Note that this is a lattice plot:

  class(Loblolly)
[1] "nfnGroupedData" "nfGroupedData"  "groupedData"    "data.frame"

Thus, the method plot.nfnGroupedData() producing a lattice plot is 
called by the generic plot().

So, you don't want to start postscript(), but
  trellis.device("postscript", file = "PSFile.ps")
  plot(Loblolly)
  dev.off()

Uwe Ligges