spir_visual: spir_visual

Description Usage Arguments Value Examples

View source: R/spiR.R

Description

This function allows you to create 2 types of visuals: bar and line charts.

Usage

1
2
3
4
5
6
spir_visual(
  chart = "bar_1",
  indicator = "SPI",
  years = max(SPI_data$year),
  title = TRUE
)

Arguments

chart

Type of charts.

indicator

An indicator from the Social Progress Index.

years

A chosen year

title

Chart title, set by default to TRUE

Value

Chosen Graph

Examples

1
spir_visual(chart = "bar_1", indicator = "SPI", years = "2020")

spiR documentation built on March 5, 2021, 5:05 p.m.