byf.hist | R Documentation |
Draws a histogram of a numeric variable per level of a factor.
byf.hist(formula, data, sep = FALSE, density = TRUE, xlab = NULL, ylab = NULL,
col = NULL)
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. |
Maxime HERVE <maxime.herve@univ-rennes1.fr>
hist
data(iris)
byf.hist(Sepal.Length~Species,data=iris)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.