[R] plot several histograms with same y-axes scaling using hist()

From: hck <hans-christian.krumholz_at_uni-ulm.de>
Date: Fri, 29 Apr 2011 03:35:41 -0700 (PDT)


Dear all

Problem: hist()-function, scale = “percent”

I want to generate histograms for changing underlying data. In order to make them comparable, I want to fix the y-axis (vertical-axis) to, e.g., 0%, 10%, 20%, 30% as well as to fix the spaces, too. So the y-axis in each histogram should be identical. Currently, I have 100 histograms and the y-axis scales changes in each.

Here is my code:

="Hist(na.exclude("&AA3&"), breaks=50, col=""seashell3"", scale=""percent"",xlim=c(-1, 1), xlab=""Bewertungsfehler"", ylab=""Haeufigkeit (in %)"", main=""KBV"", border=""white"")"

I tried the ylim=c(…), but unfortunately it does not work.

Thanks for your help in advance!
Regards,
Hans

--
View this message in context: http://r.789695.n4.nabble.com/plot-several-histograms-with-same-y-axes-scaling-using-hist-tp3483376p3483376.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_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.
Received on Fri 29 Apr 2011 - 10:39:25 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 29 Apr 2011 - 13:00:34 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive