Create barcharts for all categorical variables in a data frame.
barcharts(
data,
fill = "deepskyblue2",
color = "grey30",
labels = TRUE,
sort = TRUE,
maxcat = 20,
abbrev = 20
)data frame
fill color for bars
color for bar labels
if TRUE, bars are labeled with percents
if TRUE, bars are sorted by frequency
numeric. barcharts with more than this number of bars will not be plotted.
numeric. abbreviate bar labels to at most, this character length.
a ggplot graph
barcharts(cars74)
#> The following variable had more than 20 levels and were not graphed:
#> auto