View source: R/moran.scatterplot.R
moran.scatterplot | R Documentation |
This function produces the moran scatterplot.
moran.scatterplot(x,y,listw,CENT=mean,DESV=sd, lisa, signif, ...)
x |
A numeric vector. |
y |
A numeric vector. This is the variable to be spatially lagged.
If |
listw |
A list of spatial weights as provided by |
CENT |
Central tendency statistic used to compute the Moran Statistic.
Defaults to |
DESV |
Dispersion statistic. Defaults to |
lisa |
If an object of class |
signif |
If an object of class |
.
... |
Further arguments provided to |
The moran scatterplot provides a way to visually inspect if there is spatial autocorrelation.
Osmar Leandro Loaiza Quintero
unimoran, unimoran.test, bimoran, bimoran.test
data(usinc)
require(spdep)
lw<-nb2listw(
poly2nb(usinc,queen=TRUE),style='W'
)
moran.scatterplot(x=usinc$X2007, y=usinc$X2009, listw=lw)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.