# 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)
# }
Run the code above in your browser using DataLab