geom_edge_sf | R Documentation |
This geom is equivalent in functionality to ggplot2::geom_sf()
for LINESTRING
geometries and allows for plotting of edges in their geographical space in
different colours, linetypes and widths.
geom_edge_sf(
mapping = NULL,
data = get_sf_edges(),
position = "identity",
show.legend = NA,
...
)
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
position |
Position adjustment, either as a string naming the adjustment
(e.g. |
show.legend |
logical. Should this layer be included in the legends?
You can also set this to one of "polygon", "line", and "point" to override the default legend. |
... |
Other arguments passed on to |
geom_edge_sf
understand the following aesthetics.
alpha
colour
linetype
filter
Lorena Abad
Other geom_edge_*:
geom_edge_arc()
,
geom_edge_bend()
,
geom_edge_bundle_force()
,
geom_edge_bundle_minimal()
,
geom_edge_bundle_path()
,
geom_edge_density()
,
geom_edge_diagonal()
,
geom_edge_elbow()
,
geom_edge_fan()
,
geom_edge_hive()
,
geom_edge_link()
,
geom_edge_loop()
,
geom_edge_parallel()
,
geom_edge_point()
,
geom_edge_span()
,
geom_edge_tile()
if (require("sfnetworks", quietly = TRUE)) {
gr <- sfnetworks::as_sfnetwork(roxel)
ggraph(gr, 'sf') + geom_edge_sf()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.