mplot_bar: Plot bar charts

Description Usage Arguments Value Examples

View source: R/mplot.R

Description

Plot bar charts.

Usage

1
mplot_bar(df, y, x = NULL)

Arguments

df

data.frame

y

y axis

x

x axis

Value

ggplot object

Examples

1
2
3
4
5
6
7
8
## 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)

## End(Not run)

mmetrics documentation built on July 26, 2019, 9:03 a.m.