make_bar_plot: Create a Barplot of Country Obesity Rankings

Description Usage Arguments Value Examples

View source: R/plots.R

Description

Create a Barplot of Country Obesity Rankings

Usage

1
2
3
4
5
6
7
8
make_bar_plot(
  .region = NULL,
  .year = 2016,
  .income = NULL,
  .sex = NULL,
  .ascending = TRUE,
  .n = 10
)

Arguments

.region

The region input callback (character vector)

.year

The year input callback (integer vector)

.income

The income group callback (character vector)

.sex

The sex group callback (scalar character)

.ascending

a logical indicating the selection for top or bottom for the country rankings. Also accepts a character. Defaults to TRUE.

.n

a scalar representing the number of countries to chart.

Value

A plotly object.

Examples

1
2
3
4
make_bar_plot()
make_bar_plot(.n = 5)
make_bar_plot(.n = 5, .ascending = FALSE)
make_bar_plot(.n = 5, .ascending = "FALSE")

UBC-MDS/obesity-explorer-R documentation built on Feb. 7, 2021, 4:37 a.m.