Paul Hiemstra <paul.hiemstra <at> knmi.nl> writes: > > Hi, > > When using ggplot, take a look at facet_wrap and geom_histogram. > > regards,
More specifically, try something along the lines of d <- data.frame(f=factor(paste("chr",rep(c(1,2,3,7,9,22),each=50),sep="")), v=runif(300)) library(ggplot2) ggplot(d,aes(x=v))+geom_histogram()+facet_wrap(~f) ______________________________________________ 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.