Plot bar charts.

mplot_bar(df, y, x = NULL)

Arguments

df

data.frame

y

y axis

x

x axis

Value

ggplot object

Examples

# NOT RUN {
df <- mmetrics::dummy_data
# Add metrics and plot directly
mmetrics::mplot_bar(mmetrics::add(df, gender), ctr, gender)
# You can remove x parameter. in this case first column is assumed as x parameter
mmetrics::mplot_bar(mmetrics::add(df, gender), ctr)
# }