Add sentinel sites to dynamic map

overlay_sentinels(
  myplot,
  project,
  sentinel_radius = NULL,
  fill = TRUE,
  fill_colour = c(grey(0.5), "red"),
  fill_opacity = 0.5,
  border = FALSE,
  border_colour = "black",
  border_weight = 1,
  border_opacity = 1,
  legend = FALSE,
  label = FALSE,
  label_size = 15
)

Arguments

myplot

dynamic map produced by plot_map() function

project

an RgeoProfile project, as produced by the function rgeoprofile_project().

sentinel_radius

the radius of sentinel sites. Taken from the active parameter set if unspecified.

fill

whether to fill circles.

fill_colour

colour of circle fill.

fill_opacity

fill opacity.

border

whether to add border to circles.

border_colour

colour of circle borders.

border_weight

thickness of circle borders.

border_opacity

opacity of circle borders.

legend

whether to add a legend for site count.

label

whether to label sentinel sites with densities.

label_size

size of the label.

Examples

p <- rgeoprofile_file("tutorial1_project.rds") plot1 <- plot_map() plot1 <- overlay_sentinels(plot1, project = p, fill_opacity = 0.9, fill = TRUE, fill_colour = c(grey(0.7), "red"), border = c(FALSE, TRUE), border_colour = "black",border_weight = 0.5)
#> getting sentinel radius from active parameter set:
#> sentinal radius = 0.25km
plot1