spflow_map | R Documentation |
This generic is used as an interface to map_flows()
, where all information
available in the object is extracted and provided as arguments.
spflow_map(object, ...)
## S4 method for signature 'spflow_network_multi'
spflow_map(object, id_net_pair = id(object)[["pairs"]][[1]], ..., flow_var)
## S4 method for signature 'spflow_model'
spflow_map(object, ..., flow_type = "resid", add_title = TRUE)
object |
A |
... |
arguments passed to methods and |
id_net_pair |
A character indicating the id of a |
flow_var |
A character, indicating one variable from the network pair data |
flow_type |
A character indicating what to values to show. Should be one of c("resid", "fitted", "actual"). |
add_title |
A logical, if |
Lukas Dargel
# Used with a spflow_network_multi ...
spflow_map(multi_net_usa_ge, "ge_ge",flow_var = "y9")
# Used with a model...
gravity_ge <- spflow(
y1 ~ . + P_(DISTANCE),
multi_net_usa_ge,
"ge_ge",
spflow_control(model = "model_1"))
spflow_map(gravity_ge)
spflow_map(gravity_ge, flow_type = "fitted")
spflow_map(gravity_ge, flow_type = "actual")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.