Skip to contents

Creates a visualization of survey locations, either interactively or statically.

Usage

dm_plot_survey_locations(
  data,
  interactive = TRUE,
  var = "wtcpue",
  title = "Survey Locations",
  color_palette = ggplot2::scale_color_viridis_c,
  tiles = c("Esri.OceanBasemap", "OpenStreetMap"),
  ...
)

Arguments

data

A spatial data frame of survey locations

interactive

Whether to create an interactive plot (default: TRUE)

var

Variable name to use for color (default: "wtcpue")

title

Plot title (default: "Survey Locations")

color_palette

Color palette function for static plot (default: scale_color_viridis_c)

tiles

Background tiles for interactive plot (default: c("Esri.OceanBasemap", "OpenStreetMap"))

...

Additional arguments passed to plotting functions

Value

A mapview object (interactive=TRUE) or ggplot object (interactive=FALSE)

Examples