Draws locations (location.geom, GeoJSON) rather than observation
points. Several visits to the same site become one feature. Observation
points stay in obs_map().
Usage
obs_map_visits(
x,
location = NULL,
user = NULL,
species = NULL,
group = NULL,
protocol = NULL,
date = NULL,
date_start = NULL,
date_end = NULL,
type = c("static", "interactive"),
color = "none",
title = NULL
)Arguments
- x
Path to a project SQLite export, a project obs_df, or a tibble from
obs_visits()/obs_locations().- location, user, species, group, protocol, date, date_start, date_end
Passed to
obs_visits()whenxis a path orobs_df.- type
"static"(ggplot2) or"interactive"(leaflet).- color
Column used to colour features, or
"none"(default).- title
Map title.
Details
x may be a project SQLite path, a project obs_df, or a
tibble already returned by obs_visits() / obs_locations(). Filters
apply when x is a path or obs_df.
Examples
if (FALSE) { # \dontrun{
obs_map_visits("project-export.sqlite")
obs_map_visits(db, location = "North Ridge", type = "interactive")
obs_map_visits(obs_visits(db, protocol = "Pond check"))
} # }