Description Usage Arguments Author(s) Examples
This functions plots the points that could not be mapped using RapidPolygonLookup() The points are overlayed on the polygons to contextualize their geographical location and understand the reason behind their exclusion.
1 | DiagnoseFailure(XY.polys, poly.list = NULL)
|
XY.polys |
output from function RapidPolygonLookup() |
poly.list |
polygon list with 3 or 4 elements: data, polys, poly.centers, and possibly ranges. Needs to be supplied if RapidPolygonLookup() was run with keep.data= FALSE |
Markus Loecher <markus.loecher@gmail.com> and Madhav Kumar <madhavkumar2005@gmail.com>
1 2 3 4 5 6 7 8 9 | data(sf.crime.2012, envir = environment())
data(sf.polys, envir = environment())
cat(nrow(sf.crime.2012), "rows in SF crime \n")
XY.kdtree <- RapidPolygonLookup(sf.crime.2012[,c("X","Y")], poly.list= sf.polys,
k= 10, N= 1000,
poly.id= "fips", poly.id.colname= "census.block",
keep.data= TRUE, verbose= TRUE)
DiagnoseFailure(XY.kdtree)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.