Description Usage Arguments Value Examples
Create a Barplot of Country Obesity Rankings
1 2 3 4 5 6 7 8 | make_bar_plot(
.region = NULL,
.year = 2016,
.income = NULL,
.sex = NULL,
.ascending = TRUE,
.n = 10
)
|
.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. |
A plotly object.
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.