read_distribution: Reads SAU distribution of taxons

View source: R/read_distribution.R

read_distributionR Documentation

Reads SAU distribution of taxons

Description

This function loads the SAU distribution of a taxon from DROBO. You have to be connected to the UBC network and have access to the CORU-DROBO in order to use the function. You can choose to return the data or just a map for visualization. Note that no user/id will be required but the path wont be found. Note that this function needs the CORU coordinate grid

Usage

read_distribution(taxon_key, root_path = NA, output = "plot", coords = FALSE)

Arguments

taxon_key

is the species to load as taxon key number.

root_path

Expects the root computer path before DROBO. Note: do not include /

output

"OPtions to return data or plot. Default to plot

box

Expects a vector with four values in the following order: low lat, high lat, low long and high long to load geographical specific data.. if FALSE it will load global database

Value

A data frame or a map showing the distribution of a specific taxa according to the Sea Around Us

#' @export

Author(s)

Juliano Palacios Abrantes | j.palacios@oceans.ubc.ca

Examples

Note needs coordinate system for running
output data
read_distribution(600004,output = "data",root_path = "/Volumes",coords = Lon_Lat_DBEM)
#' output plot
read_distribution(600004,output = "plot", root_path = "/Volumes",coords = Lon_Lat_DBEM)

coruubc/Rcoru documentation built on Feb. 11, 2024, 12:07 a.m.