map_outliers: View Whittaker outliers on an interactive map

View source: R/map_outliers.R

map_outliersR Documentation

View Whittaker outliers on an interactive map

Description

This function makes use of the mapview package functionality to produce interactive views of temperature-precipitation Whittaker outliers.

Usage

map_outliers(tp, xy, validate = TRUE, basemaps = c("Esri.WorldImagery",
  "OpenTopoMap", "Esri.WorldShadedRelief", "OpenStreetMap.Mapnik",
  "CartoDB.Positron"), ...)

Arguments

tp

A two column matrix, data.frame or data.table object. First column must refer to mean annual temperatures in Celsius degrees. Second column must refer to annual precipitations in cm. This two-column table represents all temperature-precipitation pairs (rows) to be tested if they fall inside or outside of the Whittaker biome polygons.

xy

A two column matrix, data.frame or data.table object containing the spatial coordinates corresponding to the temperature-precipitation pairs (rows) from the tp table above. First column must be WGS84 longitude/easting. Second column must be WGS84 latitude/northing.

validate

Should the input be validated? Variable containing a single logical constant (TRUE or FALSE). Default is TRUE, meaning that some input checking is carried out by default. Passed to get_outliers. See help(get_outliers) for details. Checks also if xy is a two column matrix, data.frame or data.table, if its columns are of numeric type and if xy and tp tables have the same number of rows.

basemaps

Passed to mapview::mapviewOptions. Default values are: basemaps = c("Esri.WorldImagery", "OpenTopoMap", "Esri.WorldShadedRelief", "OpenStreetMap.Mapnik", "CartoDB.Positron")

...

Other arguments passed to mapview::mapView().

Value

Interactive view (map) of Whittaker outliers as produced by mapview::mapView() function.

Author(s)

Valentin Stefan


valentinitnelav/plotbiomes documentation built on Oct. 22, 2022, 6:22 a.m.