Learn R Programming

RVAideMemoire (version 0.9-11)

byf.hist: Histogram for factor levels

Description

Draw a histogram of a numeric variable per level of a factor.

Usage

byf.hist(x, f, ...)

Arguments

x
numeric vector.
f
factor.
...
other arguments to pass to the hist() function.

Examples

Run this code
data(iris)
byf.hist(iris$Sepal.Length,iris$Species)

Run the code above in your browser using DataLab