Learn R Programming

spatialrisk (version 0.7.0)

plot.concentration: Automatically create a plot for objects obtained from highest_concentration()

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

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

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

Value

Interactive view of geohashes with highest concentrations

Interactive view of geohashes with highest concentrations

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

Author

Martin Haringa

Martin Haringa