format_fortify | R Documentation |
a unified function to format network
or igraph
object.
format_fortify(
model,
nodes = NULL,
weights = NULL,
arrow.gap = ifelse(network::is.directed(model), 0.025, 0),
by = NULL,
scale = TRUE,
stringsAsFactors = getOption("stringsAsFactors", FALSE),
.list_vertex_attributes_fun = NULL,
.get_vertex_attributes_fun = NULL,
.list_edges_attributes_fun = NULL,
.get_edges_attributes_fun = NULL,
.as_edges_list_fun = NULL
)
model |
an object of class |
nodes |
a nodes object from a call to fortify. |
weights |
the name of an edge attribute to use as edge weights when
computing the network layout, if the layout supports such weights (see
'Details').
Defaults to |
arrow.gap |
a parameter that will shorten the network edges in order to
avoid overplotting edge arrows and nodes; defaults to |
by |
a character vector that matches an edge attribute, which will be
used to generate a data frame that can be plotted with
|
scale |
whether to (re)scale the layout coordinates. Defaults to
|
stringsAsFactors |
whether vertex and edge attributes should be
converted to factors if they are of class |
.list_vertex_attributes_fun |
a "list vertex attributes" function. |
.get_vertex_attributes_fun |
a "get vertex attributes" function. |
.list_edges_attributes_fun |
a "get edges attributes" function. |
.get_edges_attributes_fun |
a "get edges attributes" function. |
.as_edges_list_fun |
a "as edges list" function. |
a data.frame
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.