oceanMaps: Function #1.4 oceanMaps function in progress to plot...

oceanMapsR Documentation

Function #1.4 oceanMaps function in progress to plot different outputs of the rOcean package visualize spatial patterns in marine biodiversity

Description

to map different metrics computed using functions of the rOcean package

Usage

oceanMaps(grid, grid_provided = T, logScale = F, occurrences,
  map_occurrences = F, convex_hull = F, long_name = "decimalLongitude",
  lat_name = "decimalLatitude", min_long = -180, max_long = 180,
  min_lat = -90, max_lat = 90, species_name = "species",
  background_color = "grey10", dot_color = "steelblue",
  low_color = "steelblue", mid_color = "gold", high_color = "firebrick",
  col_steps = 20, main = "")

Arguments

grid

raster of species presences, richness, abundance or other metrics.

grid_provided

to indicate whether a raster is provided to be mapped

occurrences

species occurrences dataframe with at least latitude and longitude columns

map_occurrences

if true, occurrences are mapped for each species

convex_hull

if true, a convex hull is computed and mapped for each species of occurrences

long_name

column name for longitudes in the "occurrences" dataframe

lat_name

column name for latitudes in the "occurrences" dataframe

min_long

minimum longitude of the analysis

max_long

maximum longitude of the analysis

max_lat

maximum latitude of the analysis

log_scale

if True grid values are plotted in a log scale, useful for abundance representations

species_names

column name for species names in the "occurrences" dataframe

max_long

minimum latitute of the analysis

Value

The result is a map with the spatial trends

Author(s)

I. Montero-Serra, E. Aspillaga, V. Barve, N Barve & K. Kaplan,


monteroserra/rOceans documentation built on Dec. 23, 2024, 2:47 p.m.