Re: [S] Creating lots of windows metafiles - or not

Robert Kinley (KINLEY_ROBERT@lilly.com)
Tue, 04 Aug 1998 16:21:25 +0100


Many thanks to Andreas Krause for his near-instant response (attached) to
my plea for aid. ........... Bob Kinley
---------------------- Forwarded by Robert Kinley/EMA/LLY on 04/08/98 16:21
---------------------------

Andreas Krause <Andreas.Krause@genedata.com> on 04/08/98 16:08:09

To: Robert Kinley/EMA/LLY
cc:

Subject: Re: [S] Creating lots of windows metafiles - or not

I guess you are not closing the device, such that information is not
written
(yet).
Try graphics.off() to close all devices, or do the proper thing using
dev.off()
for each opened graphsheet.

andreas krause

Robert Kinley wrote:
>
> I'm using Splus 4.5 on windows 95.
>
> With Splus 4.0, I often wrote little functions (using fix ) similar to
> the following, in order to
> create lots of windows metafiles for later inclusion in ms-word
documents.
>
> Under Splus 4.5 the WMF files don't get created, and I'm b....d if I
> can see why.
>
> Can any kind person out there enlighten me ??
>
> Ta .................. Bob Kinley
>
> wmf.test<-function()
> {
> fnames <- c("first", "second", "third")
> for(i in 1:3) {
> graphsheet(format = "WMF", file =
paste("D:\\data\\stab.plots\\",
> fnames[i], ".wmf", sep = ""))
> par(mfrow = c(2, 2))
> x <- rnorm(10)
> y <- rnorm(10)
> z <- runif(10)
> plot(x, y)
> title(fnames[i])
> plot(x, z)
> plot(y, z^2)
> }
> }
>
> -----------------------------------------------------------------------
> This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
> send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
> message: unsubscribe s-news

--
Dr. Andreas Krause, GeneData AG, Postfach 254, CH-4016 Basel
mailto:Andreas.Krause@genedata.com   http://www.genedata.com

----------------------------------------------------------------------- This message was distributed by s-news@wubios.wustl.edu. To unsubscribe send e-mail to s-news-request@wubios.wustl.edu with the BODY of the message: unsubscribe s-news