plot_map2: Map of the clusters

View source: R/plot_map.R

plot_map2R 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.


HDSpatialScan documentation built on May 31, 2023, 7:52 p.m.