Learn R Programming

getSpatialData (version 0.1.0)

view_records: View footprints of records

Description

view_records and plot_records display the footsprint of each record on a map.

Usage

view_records(
  records,
  show_aoi = TRUE,
  line_colours = hcl.colors(nrow(records)),
  fill_colours = hcl.colors(nrow(records)),
  fill_alpha = 0.3,
  aoi_colour = "deepskyblue",
  verbose = TRUE
)

plot_records( records, show_aoi = TRUE, line_colours = hcl.colors(nrow(records)), fill_colours = hcl.colors(nrow(records)), fill_alpha = 0.3, aoi_colour = "deepskyblue", verbose = TRUE )

Arguments

records

records data frame, containing one or multiple records (each represented by one row), as returned by get_records

show_aoi

logical, whether the session AOI defined with set_aoi should be drawn on the map or plot(s) (TRUE) or not.

line_colours

character, colours for each footprint's outline. Vector must be of same length as number of records (nrow(records)).

fill_colours

character, colours of each footprint's fill. Vector must be of same length as number of records (nrow(records))

fill_alpha

numeric, alpha value for fill_colours. Value must be between 0 (transparent) and 1 (opaque).

aoi_colour

character, colour of the AOI. Ignored, if show_aoi = FALSE.

verbose

logical, whether to display details on the function's progress or output on the console.

Value

None or a mapview/plot object