[R] Error in plot.new() : Figure margins too large
P.Dalgaard at biostat.ku.dk
Thu Jan 11 12:03:39 CET 2007
> was could be the reason for such an error message???
Generically, that the (per-subplot) figure region is so small that
subtracting margins leaves nowhere to plot. Reasons include: Plotting
area too small, too many subplots, too many lines of text in margins,
too large font size in margins.
> I'd like to create a window with 10x6 barplot and save it as pdf.
> I tried:
> pdf("histogram.pdf",width=7, height=7)
What did you expect the following line to do? I think it doesn't...
> windows(cols, rows)
> par(mfcol = c(rows,cols))
> sapply(mat, calcHist)
> Within the method of sapply, I call barplot
> What is wrong???
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
O__ ---- Peter Dalgaard Øster Farimagsgade 5, Entr.B
c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help