Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

outliers

Visual detection of outliers.


Description

Draws plots of sites in geographical (longlat) and environmental (2-axis PCA) space.

Usage

outliers(longlat, layers)

Arguments

longlat

Matrix of longitude and latitude or eastness and northness (two columns in this order) of species occurrence records.

layers

Raster* object as defined by package raster. It can be any set of environmental layers thought to allow the identification of environmental outliers.

Details

Erroneous data sources or errors in transcriptions may introduce outliers that can be easily detected by looking at simple graphs of geographical or environmental space.

Value

A data.frame with coordinate values and distance to centroid in pca is returned. Two plots are drawn for visual inspection. The environmental plot includes row numbers for easy identification of possible outliers.

Examples

data(red.records)
data(red.layers)
outliers(red.records, red.layers[[1:3]])

red

IUCN Redlisting Tools

v1.5.0
GPL-3
Authors
Pedro Cardoso
Initial release
2020-05-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.