Description Usage Arguments Value Examples
This function is similar to get.knclusters but it also allows for spatio-temporal clusters.
1 | get.stclusters(stfdf, results)
|
stfdf |
A sp or spacetime object with the information about the data. |
results |
Results from a call to DetectClustersModel |
A list with as many elements as clusters in 'results'
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | library("DClusterm")
library("RColorBrewer")
data("brainNM")
data("brainNM_clusters")
stcl <- get.stclusters(brainst, nm.cl0)
#Get first cluster
brainst$CLUSTER <- ""
brainst$CLUSTER[ stcl[[1]] ] <- "CLUSTER"
#Plot cluster
stplot(brainst[, , "CLUSTER"], at = c(0, 0.5, 1.5), col = "#4D4D4D",
col.regions = c("white", "gray"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.