hc_inegi: Chart INEGI series

Description Usage Arguments Examples

View source: R/chart.R

Description

Charts one or more INEGI series using inegiR package.

Usage

1
hc_inegi(hc, series, token, type = "line", names = NULL)

Arguments

hc

highcharter object

series

one or more INEGI series to chart. All will obey same type of chart. Must be same length and frequency.

token

INEGI API token

type

type of chart, to pass to highcharter

names

if NULL will use metadata to name series, but can be overwriten with this parameter

# @importFrom inegiR compact_inegi_series

Examples

1
2
3
4
5
6
## Not run: 
library(higcharter)
library(inegiR)
highchart() %>% hc_inegi(c(s1, s2), token)

## End(Not run)

Eflores89/inegiChartR documentation built on May 6, 2019, 3:23 p.m.