[R] win.metafile and multiple plots

Michael D. Sohn mdsohn at lbl.gov
Wed Mar 13 07:10:30 CET 2002


I'm having difficulty using the win.metafile command.  I'd like to place
three plots in one window and then save the window as a metafile.  The
commands I want to use are:

win.metafile("mike.emf",width=3,height=2,pointsize=10)
nf <- layout(matrix(c(1,2,3), 3, 1), heights=c(1,1,1))
layout.show(nf)
plot(rnorm(10))
plot(rnorm(10))
plot(rnorm(10))
dev.off()

However, I get the error:
Error in plot.new() : A metafile can store only one figure.

after the first plot.  Any suggestions?

thanks,
Mike


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list