Skip to contents

This function implements a bar plot method for factor arguments to the c3plot generic function. Bar heights will be counts for the factor levels.

Usage

# S3 method for factor
c3plot(x, ylab = "Count", ...)

Arguments

x

a factor.

ylab

a label for the y axis.

...

arguments passed to c3barplot.

See also

Examples

mtcars <- mtcars
mtcars$cyl <- as.factor(mtcars$cyl)
c3plot(mtcars$cyl)