recluster.col: Projecting a two dimensional plot in RGB space

Description Usage Arguments Value Author(s) References Examples

Description

This function projects a two dimensional matrix into a RGB space with red, green, yellow and blue at its four corners. RGB combination for each case corresponding to its position in this space is provided together with new coordinates.

Usage

1
recluster.col(mat,st=TRUE,rot=TRUE)

Arguments

mat

A matrix containing two dimensional coordinates for cases.

st

Logical, if TRUE then values in axes are standardized between 0 and 1, if FALSE then original values are maintained.

rot

Logical, if TRUE then the axis with highest variance is oriented on the x-axis.

Value

A matrix with the first two columns representing the coordinates and the third, fourth and fifth representing the red, green and blue components, respectively.

Author(s)

Leonardo Dapporto and Matteo Ramazzotti

References

Kreft H., Jetz, W. "A framework for delineating biogeographic regions based on species distributions" J Biogeogr (2010),37: 2029-2053.

Dapporto, L., Fattorini, S., Voda, R., Dinca, V., Vila, R. "Biogeography of western Mediterranean butterflies: combining turnover and nestedness components of faunal dissimilarity." J Biogeogr (2014), 41: 1639-1650.

Examples

1
2
3
4
5

recluster documentation built on July 27, 2020, 1:15 a.m.