Java Mailing List Archive

http://www.r-help.com/

Home » R Help for Statistical Computing »

[R] Plotting multiple histograms on same panel

LCOG1

2010-08-23

Replies: Find Java Web Hosting

Author LoginPost Reply

Hey everyone,
 So i cant figure this out. when using histogram() from lattice instead
of hist() i get what i want as far as output. But using histogram i can
seem to be able to figure out how to get multiple plots on the same panel.

So
par(mfrow=c(3,2))
for (i in 1:20) hist(rnorm(100),main="",cex.axis=.8)

gets me about what i want but i want to use histogram() cause it gives me
the format i want but the identical code does not work for histogram().

par(mfrow=c(3,2))
for (i in 1:20) histogram(rnorm(100),main="",cex.axis=.8)

I thought this was simply set in par() but it doesn't seem to do any good.
Thoughts.

Thanks
JR
--
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@(protected)
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.
©2008 r-help.com - Jax Systems, LLC, U.S.A.