> Your data seems to have come through messed up but lets > assume you have a data frame with one column per tumor. > The convert your data to stacked form and call histogram: > > DF <- data.frame(T1 = 1:10, T2 = 6:15) > > library(lattice) > histogram(~ values | ind, stack(DF))
Or with ggplot and reshape: install.packages(ggplot) library(ggplot) qplot(x=value, facets=. ~ variable, data=melt(DF,m=1:2), type="histogram") Hadley ______________________________________________ R-help@stat.math.ethz.ch 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.