Displaying 1 result from an estimated 1 matches for "superhist2pdf".
2010 Jul 15
0
Histogram with two groups on the same graph (not on separate panels)
...uency bar appearing side by side, as shown in
http://home.medewerker.uva.nl/g.dutilh/bestanden/multiple%20group%20histogram.png
?
gb <- read.csv(file = "D:\\data
12.24.06\\AllMamushiCorrected5.8.10_7.12.10.csv", header=TRUE, strip.white=TRUE,
na.strings="")
attach(gb)
superhist2pdf <- function(x, filename = "super_histograms.pdf",
dev = "pdf", title = "Superimposed Histograms", nbreaks ="Sturges") {
junk = NULL
grouping = NULL
for(i in 1:length(x)) {
junk = c(junk,x[[i]])
grouping <- c(grouping, rep(i,length(x[[i]]))) }
grouping &...