nb2ggplot: From spdep neighbour object to data frame usable with ggplot2

Description Usage Arguments Value

View source: R/analyse_utils.R

Description

From spdep neighbour object to data frame usable with ggplot2

Usage

1
nb2ggplot(nb, stations)

Arguments

nb

nb object obtained with spdep::dnearneigh or similar

stations

sf object containing geometry points of each location

Value

data.frame with lon, lat for each point and lon_to and lat_to as xend and yend for geom_segment


mrfoliveira/STEvaluation-MDPI2021 documentation built on Dec. 21, 2021, 10:07 p.m.