plot_map2 {HDSpatialScan} | R Documentation |
Map of the clusters
Description
This function plots a map of the sites and the clusters
Usage
plot_map2(spobject, sites_coord, output_clusters, system, colors = "red")
Arguments
spobject |
SpObject. SpatialObject corresponding the sites. |
sites_coord |
numeric matrix. Coordinates of the sites or the individuals, in the same order that the data for the cluster detection. |
output_clusters |
list. List of the sites in the clusters: it is the sites_clusters of the output of NPFSS, PFSS, DFFSS, URBFSS, MDFFSS, MRBFSS, MG, MNP, UG or UNP, or the sites_clusters_LH/sites_clusters_W/sites_clusters_P/sites_clusters_R of the MPFSS. |
system |
character. System in which the coordinates are expressed: "Euclidean" or "WGS84". |
colors |
character. Colors of the clusters. If length(colors)=1 all the clusters will be in this color. Else it should be a vector of length the number of clusters to plot. |
Value
No value returned, plots a map of the sites and the clusters.