plotSingleTree: Plot Single Tree

Description Usage Arguments Value

View source: R/plotSingleTree.R

Description

This function generates a plot for one commodity trees defined with an edge list.

Usage

1
2
plotSingleTree(edges, parentColname, childColname, extractionColname,
  dashInf = TRUE, ...)

Arguments

edges

A data.table with parent and child node IDs (corresponding to the IDs in nodes) which specify the commodity tree structure. Additionally, there should be a column with extraction rate data and a column with shares data.

parentColname

The column name of commodityTree which contains the ID of the parent node.

childColname

The column name of commodityTree which contains the ID of the child node.

extractionColname

The column name of commodityTree which contains the extraction rate data.

dashInf

Should extraction rates of infinity be represented with dashes? This generally makes sense because such processing should be shown on the tree but not considered in standardization.

...

Additional plotting parameers for diagram::plotmat.

Value

Generates a plot of the commodity tree as specified by edges.


SWS-Methodology/faoswsStandardization documentation built on Feb. 7, 2022, 5:05 a.m.