Description Usage Arguments Value
This function generates a plot for one commodity trees defined with an edge list.
1 2 | plotSingleTree(edges, parentColname, childColname, extractionColname,
dashInf = TRUE, ...)
|
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. |
Generates a plot of the commodity tree as specified by edges.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.