mapofpast: Creates prediction ground and paleo dem

View source: R/mapofpast.R

mapofpastR Documentation

Creates prediction ground and paleo dem

Description

This function uses Scotese and Wright (2018) PALEOMAPS to generate the prediction ground and paleo dems of the requested temporal interal

Usage

mapofpast(Ma,domain,ext=NULL,projection,pts=NULL)

Arguments

Ma

An integer value comprised in between 0 and 540

domain

Character. Eithter "land", for terrestrial species, or "sea", for marine species.

ext

Optional. A numeric vector with the coordinates (in wgs84 format) of the rectangle's vertices enclosing the domain. It must be c(min longitude, max longitude, min latitude, max latitude). See details

projection

Character. This is the euqual-area projection of the final maps. A CRS object in the proj4 format or either "moll" (Mollweide) or "laea" (Lambert Azimuthal equal area) projections. See details.

pts

Optional. A dataframe with the x and y coordinates of individual fossil localities. If specified the mean center of the fossil record spatial distribution is considered as projection's centre. See details.

Details

By setting a numeric vector for the argumento ext, the user can select a portion of the choosen domain. If the argument is NULL, when running the function, the user is asket to draw the polygon encolosing the portion of the domain to be used in all the predictions. In this case, the user will draw a polygon's vertices by clicking on the map with the lef button of the mouse. Then, by pressing Esc, the function will crop the portion of the domain enclosed by the drawn polygon. If the argument projection is either "laea" or "moll", the projection's centre is computed as the extent's centre either if set in the ext argument either if set by drawing a polygon. In the case the argument pts is specified, then the mean centre of the fossil record distribution is used as projection centre.

Value

A list of two rasters to be used in the minosse.data function: the first is the prediction domain to be used in the prediction.ground argument, and the second is a paleodem to be used in the abiotic.covs argument.

Author(s)

Francesco Carotenuto, francesco.carotenuto@unina.it

Examples

  ## Not run: 
  mapofpast(Ma=540,domain="land",ext=c(-50,50,-30,30),projection="laea",pts=NULL)
  
## End(Not run)

francesco-carotenuto/EcoPast documentation built on April 16, 2023, 5:48 p.m.