plot_map: Map of circular clusters

View source: R/plot_map.R

plot_mapR Documentation

Map of circular clusters

Description

This function plots a map of the sites and the circular clusters.

Usage

plot_map(spobject, centres, radius, system, colors = "red")

Arguments

spobject

SpObject. SpatialObject with the same coordinates system that centres (the same that sites_coord in the scan functions)

centres

numeric matrix or vector if only one cluster was detected. Coordinates of the centres of each cluster.

radius

numeric vector. Radius of each cluster in the user units if system = "Euclidean", or in km if system = "WGS84" (in the output of the scan functions)

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 circular clusters.


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