VDJ_ordination: Performs ordination/dimensionality reduction for a species incidence matrix, depending on the species selected in the feature.columns parameter.
Description
Performs ordination/dimensionality reduction for a species incidence matrix, depending on the species selected in the feature.columns parameter.
Returns a ggplot with the ordination analysis performer across features, groups, or both
Arguments
VDJ
VDJ dataframe output from the VDJ_build function.
feature.columns
Character vector. One or more column names from the VDJ to indicate the unique species for the incidence/count matrix. if more than one column is provided (e.g. c("VDJ_cdr3_aa","VJ_cdr3_aa")) these columns will be pasted together before metric calculation.
grouping.column
Character. Column name of a column to group the ordination by. This could be "sample_id" to reduce across each sample. Indicative of 'sites' in a typical community data matrix/incidence matrix used in community ecology analyses (species by sites).