Description
Create barcharts for all categorical variables in a data frame.
Usage
barcharts(
data,
fill = "deepskyblue2",
color = "grey30",
labels = TRUE,
sort = TRUE,
maxcat = 20,
abbrev = 20
)
Arguments
labels
if TRUE
, bars are labeled with percents
sort
if TRUE
, bars are sorted by frequency
maxcat
numeric. barcharts with more than this number of bars will not be plotted.
abbrev
numeric. abbreviate bar labels to at most, this character length.
Examples
Run this code# NOT RUN {
barcharts(cars74)
# }
Run the code above in your browser using DataLab