[S] Creating lots of windows metafiles - or not

Robert Kinley (KINLEY_ROBERT@lilly.com)
Tue, 04 Aug 1998 15:51:35 +0100


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