draw_margins: Draw remaining capacity line chart

Description Usage Arguments Value Examples

View source: R/draw-margins.R

Description

Draw remaining capacity line chart

Usage

1
draw_margins(data_margin, area = "fr", num_week = NULL)

Arguments

data_margin

a data.table, first column must be the datetime, the others results of Monte-Carlo simulations.

area

Name of the area, used in chart title.

num_week

Week number to be displayed in chart title.

Value

a dygraphs htmlwidget.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## Not run: 

library(antaresRead)
library(antaresWeeklyMargin)

setSimulationPath("path/to/sim")


up <- compute_margins(
  date = "2018-02-28", 
  area = "fr", 
  mcYears = 1:100,
  margin = "upward"
)

# Marges seules
draw_margins(data_margin = up$margin_area_solo, area = "fr")

# Marges interco
draw_margins(data_margin = up$margin_area_inter, area = "fr")


## End(Not run)

rte-antares-rpackage/antaresWeeklyMargin documentation built on July 25, 2019, 8:23 p.m.