Description Usage Arguments Author(s) See Also Examples
A function to plot a neighbours list given point coordinates to represent the region in two dimensions; plot.listw
is a wrapper that passes its neighbours component to plot.nb
.
1 2 3 4 5 6 |
x |
an object of class |
coords |
matrix of region point coordinates |
col |
plotting colour |
points |
(logical) add points to plot |
add |
(logical) add to existing plot |
arrows |
(logical) draw arrowheads for asymmetric neighbours |
length |
length in plot inches of arrow heads drawn for asymmetric neighbours lists |
xlim, ylim |
plot window bounds |
... |
further graphical parameters as in |
Roger Bivand Roger.Bivand@nhh.no
1 2 3 4 5 6 |
Loading required package: sp
Loading required package: Matrix
colmbs> require(maptools)
Loading required package: maptools
Checking rgeos availability: TRUE
colmbs> columbus <- readShapePoly(system.file("etc/shapes/columbus.shp",
colmbs+ package="spdep")[1])
colmbs> col.gal.nb <- read.gal(system.file("etc/weights/columbus.gal",
colmbs+ package="spdep")[1])
Warning message:
use rgdal::readOGR or sf::st_read
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.