coldist2mat {pavo} | R Documentation |
Convert coldist to distance matrix
Description
Converts a coldist()
output into a distance matrix where samples
are rows and columns.
Usage
coldist2mat(coldistres)
Arguments
coldistres |
(required) the output from a |
Value
A list containing one or two matrices, for dS and dL, depending if the original object had dS and dL columns
Author(s)
Rafael Maia rm72@zips.uakron.edu
References
Maia, R., White, T. E., (2018) Comparing colors using visual models. Behavioral Ecology, ary017 doi:10.1093/beheco/ary017
Examples
data(flowers)
vis.flowers <- vismodel(flowers, achromatic = "l")
cd.flowers <- coldist(vis.flowers, achromatic = TRUE)
coldist2mat(cd.flowers)[["dS"]]
coldist2mat(cd.flowers)[["dL"]]
[Package pavo version 2.9.0 Index]