byf.hist {RVAideMemoire} | R Documentation |
Histogram for factor levels
Description
Draws a histogram of a numeric variable per level of a factor.
Usage
byf.hist(formula, data, sep = FALSE, density = TRUE, xlab = NULL, ylab = NULL,
col = NULL)
Arguments
formula |
a formula of the form |
data |
an optional data frame containing the variables in the formula |
sep |
logical. If |
density |
logical. If |
xlab |
label for x-axis (name of the response variable as default). |
ylab |
label for y-axis ("Density" or "Frequency" as default, depending on the type of histogram). |
col |
color(s) used for density curves or bars. |
Author(s)
Maxime HERVE <maxime.herve@univ-rennes1.fr>
See Also
Examples
data(iris)
byf.hist(Sepal.Length~Species,data=iris)