chart_eia_steo: EIA Short Term Energy Outlook

View source: R/chart_eia_steo.R

chart_eia_steoR Documentation

EIA Short Term Energy Outlook

Description

Extract data and either plots or renders dataframe.

Usage

chart_eia_steo(
  market = "globalOil",
  key = "your EIA.gov API key",
  from = "2018-07-01",
  fig.title = "EIA STEO Global Liquids SD Balance",
  fig.units = "million barrels per day",
  legend.pos = list(x = 0.4, y = 0.53),
  output = "chart"
)

Arguments

market

"globalOil" only currently implemented. character

key

Your private EIA API token. character

from

Date as character "2020-07-01". Default to all dates available. character

fig.title

Defaults to "EIA STEO Global Liquids SD Balance". character

fig.units

Defaults to "million barrels per day" character

legend.pos

Defaults to list(x = 0.4, y = 0.53) list

output

"chart" for plotly object or "data" for dataframe.

Value

A plotly chart htmlwidget or a tibble.

Author(s)

Philippe Cote

Examples

## Not run: 
chart_eia_steo(key = EIAkey, market = "globalOil")

## End(Not run)


RTL documentation built on Oct. 21, 2023, 1:06 a.m.