plotFlowbased: Plot flow-based domain(s)

Description Usage Arguments Examples

View source: R/graphs.R

Description

Plot flow-based domain(s)

Usage

1
2
3
plotFlowbased(PTDF, country1, country2, domainsNames = NULL, main = "",
  xlim = c(-10000, 10000), ylim = c(-10000, 10000), width = "420px",
  height = "410px")

Arguments

PTDF

data.frame or list (list of) data.frame(s) with the PTDF of one time step. The data.frame must have the same columns as the input file of ptdfToVertices

country1

character, name of the country whose net position is in the x axis (BE, FR, DE or NL)

country2

character, name of the country whose net position is in the y axis (BE, FR, DE or NL)

domainsNames

character names of the domain(s), used as legend of the graph

main

character title of the graph

xlim

numeric x axis limits, vector with two values (min and max)

ylim

numeric y axis limits, vector with two values (min and max)

width

character, for rAmCharts only. Default to "420px" (set to "100/100" for dynamic resize)

height

character, for rAmCharts only. Default to "410px" (set to "100/100" for dynamic resize)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
PTDF <- fread(system.file("dataset/ptdf_example.csv",package = "flowBasedClustering"))
#Plot unique PTDF
PTDF1 <- PTDF[ Date == "06/08/2016" & Period == 1]
plotFlowbased(PTDF1, country1 = "DE", country2 = "BE", domainsNames = "06/08/2016")

PTDF2 <- list(PTDF[ Date == "06/08/2016" & Period == 1],
PTDF[ Date == "06/08/2016" & Period == 2],
PTDF[ Date == "06/08/2016" & Period == 3])
plotFlowbased(PTDF2, country1 = "DE", country2 = "BE", domainsNames = c("01/11/2015 - H1",
"01/11/2015 - H2", "01/11/2015 - H3"), main = "domains BE - DE")

rte-antares-rpackage/flowBasedClustering documentation built on Nov. 21, 2020, 11:21 a.m.