view_neighbor: View the neighborhood

Description Usage Arguments Value Examples

View source: R/view_neighbor.R

Description

{view_neighbor()} get neighbors from an neighbor object and returns a ggplot object.

Usage

1

Arguments

nbr

A neighbor object create by get_neighbor() function.

Value

An object ggplot

Examples

 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)

denis-or/neighbor documentation built on Dec. 19, 2021, 10:11 p.m.