plot.spotoroo: Plotting spatiotemporal clustering result

Description Usage Arguments Value Examples

View source: R/hotspot_cluster.R

Description

plot.spotoroo() is the plot method of the class spotoroo. It is a simple wrapper of plot_spotoroo().

Usage

1
2
## S3 method for class 'spotoroo'
plot(x, ...)

Arguments

x

spotoroo object. A result of a call to hotspot_cluster().

...

Additional arguments pass to plot_spotoroo()

Value

A ggplot object. The plot of the clustering results.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  # 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())

spotoroo documentation built on Nov. 10, 2021, 9:08 a.m.