Description Usage Arguments Value Examples
View source: R/view_neighbor.R
{view_neighbor()}
get neighbors from an neighbor object and returns a ggplot object.
1 | view_neighbor(nbr)
|
nbr |
A neighbor object create by |
An object ggplot
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# Import
nc <- sf::read_sf(system.file("gpkg/nc.gpkg", package = "sf"))
# Get the neighbor
l_nb <- get_neighbor(nc, "Queen")
# Visualize
view_connections(l_nb)
view_neighbor(l_nb)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.