Michael Just <mgjust <at> gmail.com> writes: > I am trying to plot multiple histograms with the same scales, etc into one > plot. The commands below produce a 3 page PDF with each histogram occupying > the upper right quadrant. And use slightly different scales on the X and Y > axes.
I suggest that you forget hist (="old style" graphics) for this type of job and use trellis graphics in package lattice, function histogram instead. True, lattice has a bit of a learning curve, but I promise you it pays. No manual subset selection, and "same scaling" is the default; you will even have some problems when you want to force different scaling. See http://dsarkar.fhcrc.org/lattice/book/figures.html You could also have a look a ggplot2, which takes and elegant approach, but still has a few rough edges. Dieter ______________________________________________ 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.