This function allows you to create 2 types of visuals: bar and line charts.
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
spir_visual(chart = "bar_1", indicator = "SPI", years = "2020")