Description Usage Arguments Value Examples
This function allows you to create 2 types of visuals: bar and line charts.
1 2 3 4 5 6 | spir_visual(
chart = "bar_1",
indicator = "SPI",
years = max(SPI_data$year),
title = TRUE
)
|
chart |
Type of charts. |
indicator |
An indicator from the Social Progress Index. |
years |
A chosen year |
title |
Chart title, set by default to TRUE |
Chosen Graph
1 | spir_visual(chart = "bar_1", indicator = "SPI", years = "2020")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.