plot.spotoroo: Plotting spatiotemporal clustering result

View source: R/hotspot_cluster.R

plot.spotorooR Documentation

Plotting spatiotemporal clustering result

Description

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

Usage

## 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




  # 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())



TengMCing/spotoroo documentation built on Nov. 21, 2024, 4:17 a.m.