powered by
Extract data and either plots or renders dataframe.
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" )
A plotly chart htmlwidget or a tibble.
htmlwidget
tibble
"globalOil" only currently implemented. character
character
Your private EIA API token. character
Date as character "2020-07-01". Default to all dates available. character
Defaults to "EIA STEO Global Liquids SD Balance". character
Defaults to "million barrels per day" character
Defaults to list(x = 0.4, y = 0.53) list
list
"chart" for plotly object or "data" for dataframe.
Philippe Cote
if (FALSE) { chart_eia_steo(key = EIAkey, market = "globalOil") }
Run the code above in your browser using DataLab