coldist2mat | R Documentation |
Converts a coldist()
output into a distance matrix where samples
are rows and columns.
coldist2mat(coldistres)
coldistres |
(required) the output from a |
A list containing one or two matrices, for dS and dL, depending if the original object had dS and dL columns
Rafael Maia rm72@zips.uakron.edu
Maia, R., White, T. E., (2018) Comparing colors using visual models. Behavioral Ecology, ary017 \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1093/beheco/ary017")}
data(flowers)
vis.flowers <- vismodel(flowers, achromatic = "l")
cd.flowers <- coldist(vis.flowers, achromatic = TRUE)
coldist2mat(cd.flowers)[["dS"]]
coldist2mat(cd.flowers)[["dL"]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.