Learn R Programming

USgrid (version 0.1.2)

US_elec: The US Hourly Demand and Supply for Electricity

Description

The total hourly demand and supply (generation) for electricity in the US since July 2015

Units: megawatthours

Time zone: UTC

Usage

US_elec

Arguments

Format

A tsibble object with hourly intervals

Details

The dataset contains the hourly demand and supply (generation) for electricity in the US (megawatthours). The `type` column describes the type of the series (demand or generation)

Examples

Run this code
# NOT RUN {
data(US_elec)

library(plotly)

plot_ly(data = US_elec,
        x = ~ date_time,
        y = ~ series,
        color = ~ type,
        type = "scatter",
        mode = "lines")

# }

Run the code above in your browser using DataLab