Message-ID: <20040117153426.24265.qmail@web10001.mail.yahoo.com>
Date: 2004-01-17T15:34:26Z
From: Karl Knoblick
Subject: Multiple groupedData plots in a postscript file using a loop
In-Reply-To: <400952D0.4000106@statistik.uni-dortmund.de>
Thanks, but it does NOT work using a loop (your
example without loop works):
trellis.device("postscript", file = "PSFile.ps")
for (i in 1:1)
{
plot(Loblolly)
}
dev.off()
Just an empty postscript file.
Karl.
--- Uwe Ligges <ligges at statistik.uni-dortmund.de> :>
> 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
>
__________________________________________________________________