MCR: A function to estimate climate using the Mutual Climatic...

Description Usage Arguments Examples

View source: R/MCR.R

Description

The Mutual Climatic Range method (see especially: Thompson et al 2012) and the Coexistence Approach are fundamentally similar methods implemented in this function to find the minimum interval of coexistence of a list of taxa. This function implements the MCR in both the weighted and unweighted form using a data.frame of climate data attached to species locality information.

Usage

1
MCR(ext, method = "unweight", plot = FALSE, file = "mcr_plot")

Arguments

ext

An object generated by the extraction() function in this package or equivalent data.frame containing species IDs and climate data.

method

A character string of value "weight" or "unweight" only. Defaults to "unweight" as this is the classic model.

plot

Boolean (T or F) to indicate whether coexistence interval plots should be generated for each variable.

file

If plot=T then provide a file name stub (prefix) to identify the plots to be generated. To this stub each variable name and the file extension will be appended.

Examples

1
2
3
4
5
6
7
8
## Not run: 
data(distr);
data(climondbioclim);
extr.raw = extraction(data=distr, clim= climondbioclim, schema='raw');
mcr = MCR(extr.raw, method = 'unweight', plot=FALSE);
mcrw = MCR(extr.raw, method = 'weight', plot=TRUE, file = 'mcr_plot');

## End(Not run)

rsh249/vegdistmod documentation built on May 28, 2019, 3:31 a.m.