powered by
Histograms with clusters
Hist( x, classes = NULL, plot = TRUE, col = 2:10, mode = c("classical", "cumsum", "density"), breaks = "Sturges", ... )
a vector, matrix or data.frame on which the histogram will be computed and ploted.
vector of classes to color
if FALSE, the histogram is only computed with no graphical output.
numeric color
one of c("classical","cumsum","density")
by default: "Sturges"
further arguments and graphical parameters passed to plot.histogram and thence to title and axis.
# NOT RUN { x <- c(rnorm(50, 0, 1), rnorm(50, 1, 1)) classes <- rep(1:2, each = 50) Hist(x, classes) # }
Run the code above in your browser using DataLab