Plot bar charts.
mplot_bar(df, y, x = NULL)
df | data.frame |
---|---|
y | y axis |
x | x axis |
ggplot object
# 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) # }