plot.concentration: Automatically create a plot for objects obtained from...

Description Usage Arguments Value Author(s)

Description

Takes an object produced by 'highest_concentration()', and creates an interactive map.

Takes an object produced by 'highest_concentration()', and creates an interactive map.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## S3 method for class 'concentration'
plot(
  x,
  grid_points = TRUE,
  legend_title = NULL,
  palette = "viridis",
  legend_position = "bottomleft",
  ...
)

## S3 method for class 'concentration'
plot(
  x,
  grid_points = TRUE,
  legend_title = NULL,
  palette = "viridis",
  legend_position = "bottomleft",
  ...
)

Arguments

x

object of class 'concentration' obtained from 'highest_concentration()'

grid_points

show grid points (TRUE), or objects (FALSE)

legend_title

title of legend

palette

palette for grid points (defaults to "viridis")

legend_position

legend position for grid points legend (defaults to "bottomleft")

...

additional arguments affecting the interactive map produced

Value

Interactive view of geohashes with highest concentrations

Interactive view of geohashes with highest concentrations

Author(s)

Martin Haringa

Martin Haringa


spatialrisk documentation built on Nov. 10, 2021, 5:09 p.m.