map_mwi_odkc: Map Marine Wildlife Incident 0.6 parsed with ruODK from ODK...

View source: R/map_mwi_odkc.R

map_mwi_odkcR Documentation

Map Marine Wildlife Incident 0.6 parsed with ruODK from ODK Central.

Description

\lifecycle

maturing

Usage

map_mwi_odkc(
  data,
  sites = NULL,
  wastd_url = wastdr::get_wastd_url(),
  fmt = "%d/%m/%Y %H:%M",
  tz = "Australia/Perth",
  cluster = FALSE
)

Arguments

data

The output of turtleviewer::turtledata$mwi from ODK form Marine Wildlife Incident 0.6.

sites

An sf object of sites with site_name and polygon geom, e.g. turtleviewer::turtledata$sites.

wastd_url

The base URL for WAStD, default: get_wastd_url()

fmt

The desired date format, default: "d/m/Y H:M"

tz

The lubridate timezone, default: "Australia/Perth

cluster

If TRUE, cluster map markers. Default: FALSE. Note: In some places, the aerial background layer does not provide imagery at sufficient zoom levels, and therefore restricts the map zoom at levels where the cluster markers don't expand. Switch to "Place names" to let cluster markers expand.

Details

Creates a Leaflet map with an interactive legend offering to toggle each species separately. The maps auto-zooms to the extent of data given.

This map function uses data from ODK Central / ruODK using form "Marine Wildlife Incident 0.6".

Value

A leaflet map

See Also

Other odkc: add_hatching_emergence_success_odkc(), add_nest_labels_odkc(), download_odkc_turtledata_2020(), exclude_training_species_odkc(), filter_odkc_turtledata(), general_disturbance_by_season_odkc(), hatching_emergence_success_odkc(), map_dist_odkc(), map_sv_odkc(), map_tracks_odkc(), map_tt_odkc(), nest_disturbance_by_season_odkc(), nesting_type_by_area_season_age_species_odkc(), nesting_type_by_area_season_species_odkc(), nesting_type_by_season_age_species_odkc(), nesting_type_by_season_calendarday_age_species_odkc(), nesting_type_by_season_calendarday_species_odkc(), nesting_type_by_season_day_species_odkc(), nesting_type_by_season_species_odkc(), nesting_type_by_season_week_age_species_odkc(), nesting_type_by_season_week_site_species_odkc(), nesting_type_by_season_week_species_odkc(), nesting_type_by_site_season_age_species_odkc(), nesting_type_by_site_season_species_odkc()

Examples

## Not run: 
data("odkc_data")
map_mwi_odkc(odkc_data$mwi, sites = odkc_data$sites)
map_mwi_odkc(data = NULL, sites = odkc_data$sites)

## End(Not run)

parksandwildlife/wastdr documentation built on Nov. 17, 2022, 4:52 p.m.