View source: R/HDSpatialScan_plotCurves.R
plotCurves | R Documentation |
This function is a generic function to plot curves.
plotCurves(x, ...)
x |
An object for which the curves are to be plotted. |
... |
Additional arguments affecting the output. |
No value returned, plots the curves.
plotCurves.ResScanOutputUniFunct
and plotCurves.ResScanOutputMultiFunct
library(sp)
data("map_sites")
data("funi_data")
coords <- coordinates(map_sites)
res_npfss <- SpatialScan(method = "NPFSS", data = funi_data, sites_coord = coords, system = "WGS84",
mini = 1, maxi = nrow(coords)/2)$NPFSS
plotCurves(x = res_npfss, add_mean = TRUE, add_median = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.