overlay_sentinels: Add sentinel sites to dynamic map

Description Usage Arguments Examples

View source: R/plot.R

Description

Add sentinel sites to dynamic map

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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

1
2
3
4
5
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)
plot1

Michael-Stevens-27/silverblaze documentation built on May 28, 2021, 5:47 p.m.