Jim: Thanks for your response. Here is an example I took from graphics gallery ( http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=2 ). Now I want to place 4 plots into the same page (e.g., one for swiss, one for usa, and so on) by running the author's function plotacpclust() 4 times. I tried par(mfrow=c(2,2) or layout(matrix(1,2,3,4), 2, 2) but none of them works. When I used split.screen(), I always got the error message "Error in plot.new() : figure margins too large". Any ideas?
Thanks. FD On 1/9/08, jim holtman <[EMAIL PROTECTED]> wrote: > > You need to provide commented, minimal, self-contained, reproducible > code. The following code works fine for me: > > > par(mfrow=c(2,2)) > > plot(0) > > plot(1) > > plot(2) > > plot(3) > > > > But I have no idea of how you are trying to use it, what operating > system you have, what type of device you are going out to, what your > margins are, etc. > > On Jan 9, 2008 4:52 PM, FD <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I met a problem when trying to put multiple plots on the same page. I > have a > > plotting function (e.g., myfunction()) that contains the lines of par(), > > layout(). Now I want to try four types of parameter combinations > and put > > these four figures on the same page. I tried par(mfrow or mfcol) and > layout > > but no go. It seems split.screen is the right choice for me. But I > always > > got the error message "Error in plot.new() : figure margins too > large". I > > don't really want to change the margin settings in myfunction() since it > > involves lots of modifications. Are there any easier ways to split > window > > and also automatically adjust the margins (and other plotting settings)? > > Thanks a lot. > > > > FD > > > > [[alternative HTML version deleted]] > > > > ______________________________________________ > > R-help@r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > > > > > -- > Jim Holtman > Cincinnati, OH > +1 513 646 9390 > > What is the problem you are trying to solve? > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.