mmetrics (version 0.3.0)

mplot_bar: Plot bar charts

Description

Plot bar charts.

Usage

mplot_bar(df, y, x = NULL)

Arguments

df

data.frame

y

y axis

x

x axis

Value

ggplot object

Examples

Run this code
# 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