View source: R/hotspot_cluster.R
plot.spotoroo | R Documentation |
plot.spotoroo()
is the plot
method of the class spotoroo
.
It is a simple wrapper of plot_spotoroo()
.
## S3 method for class 'spotoroo'
plot(x, ...)
x |
|
... |
Additional arguments pass to |
A ggplot
object. The plot of the clustering results.
# Time consuming functions (>5 seconds)
# Get clustering results
result <- hotspot_cluster(hotspots,
lon = "lon",
lat = "lat",
obsTime = "obsTime",
activeTime = 24,
adjDist = 3000,
minPts = 4,
minTime = 3,
ignitionCenter = "mean",
timeUnit = "h",
timeStep = 1)
# Different types of plots
# Default plot
plot(result, "def", bg = plot_vic_map())
# Fire movement plot
plot(result, "mov", cluster = 1:3, step = 3, bg = plot_vic_map())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.