(re)SPECIATE functions for studying similarities (or dissimilarities) within (re)SPECIATE data sets

rsp_distance_profile calculates the statistical distance between re(SPECIATE) profiles, and clusters profiles according to nearness.

rsp_distance_profile(rsp, output = c("plot", "report"))

Arguments

rsp

A respeciate object, a data.frame of re(SPECIATE) profiles.

output

Character vector, required function output: 'report' the calculated distance matrix; 'plot' a heat map of that distance matrix.

Value

Depending on the output option, sp_distance_profile returns one or more of the following: the correlation matrix, a heat map of the correlation matrix.

Note

Please note: function in development; structure and arguments may be subject to change.