Usage
sankeyNetwork(Links, Nodes, Source, Target, Value, NodeID, units = "",
colourScale = JS("d3.scale.category20()"), fontSize = 7,
fontFamily = NULL, nodeWidth = 15, nodePadding = 10, margin = NULL,
height = NULL, width = NULL)
Arguments
Links
a data frame object with the links between the nodes. It should
have include the Source
and Target
for each link. An optional
Value
variable can be included to specify how close the nodes are to
one another.
Nodes
a data frame containing the node id and properties of the nodes.
If no ID is specified then the nodes must be in the same order as the
Source
variable column in the Links
data frame. Currently only
grouping variable is allowed.
Source
character string naming the network source variable in the
Links
data frame.
Target
character string naming the network target variable in the
Links
data frame.
Value
character string naming the variable in the Links
data
frame for how far away the nodes are from one another.
NodeID
character string specifying the node IDs in the Nodes
data frame.
units
character string describing physical units (if any) for Value
colourScale
character string specifying the categorical colour
scale for the nodes. See
https://github.com/mbostock/d3/wiki/Ordinal-Scales.
fontSize
numeric font size in pixels for the node text labels.
fontFamily
font family for the node text labels.
nodeWidth
numeric width of each node.
nodePadding
numeric essentially influences the width height.
margin
an integer or a named list
/vector
of integers
for the plot margins. If using a named list
/vector
,
the positions top
, right
, bottom
, left
are valid. If
height
numeric height for the network graph's frame area in pixels.
width
numeric width for the network graph's frame area in pixels.