d.LISA | R Documentation |
Compute the origin standardized movement of a spatial unit and its neighbors and the pseudo p-value of the directional co-movement.
d.LISA(
x0,
x1,
W,
Regime = NULL,
k = 8,
mean.rel = FALSE,
nsim = NULL,
arrow = TRUE,
only = NULL
)
x0 |
a vector containing the variable at initial period of analysis |
x1 |
a vector containing the variable at final period of analysis |
W |
an object of class |
Regime |
a numeric vector containing the regime to the spatial unit belongs |
k |
a scalar in c(4,8) indicating number of circular sectors in rose diagram, by default it is set as 8 |
mean.rel |
a logical, Is the data mean relative?. By default it is FALSE |
nsim |
number of random spatial permutations for calculation of pseudo p-values, the default value is NULL. |
arrow |
Logical. Do you want to plot the arrows in the standardised plot?. If it is set as FALSE the arrow head is plot as a point. |
only |
numerical indicating the spatial unit to be considered in the plot, the NULL value imply the use of all the spatial unit in the plot. |
For later...
a list contaning
A vector scatterplot showing the Directinal co-movement of a spatial unit and its neighbors
A rose diagram of the LISA
pseudo p-values of the direction in the rose diagram. Only available when nsimm is not NULL
a data frame contening the data used for the lisa scatterplot
a data frame containing the information used for the rose diagram
a data frame containing the information used in the pseudo p-value graph. Only available when nsim is not NULL
Rey, S. J., Murray, A. T., & Anselin, L. (2011). Visualizing regional income distribution dynamics. Letters in Spatial and Resource Sciences, 4(1), 81–90.
data(us48)
w1queen <- nb2listw(poly2nb(us48))
t0<-us48$X1969/mean(us48$X1969)
t1 <-us48$X2009/mean(us48$X2009)
Regime <-us48$SUB_REGION
ok <- d.LISA(t0,t1,w1queen,Regime,k=8,nsim=999)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.