lisa_clusters | R Documentation |
Get the local cluster indicators returned from LISA computation.
lisa_clusters(gda_lisa, cutoff = 0)
gda_lisa |
An instance of LISA object |
cutoff |
A value of cutoff for significance p-values to filter not-significant clusters, default=0.0, means not used |
A numeric vector of LISA cluster indicator
## Not run:
library(sf)
guerry_path <- system.file("extdata", "Guerry.shp", package = "rgeoda")
guerry <- st_read(guerry_path)
queen_w <- queen_weights(guerry)
lisa <- local_moran(queen_w, guerry["Crm_prs"])
clsts <- lisa_clusters(lisa)
clsts
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.