median_correlations | R Documentation |
Given a correlation matrix and optionally the sample class information, calculates the median correlations of each sample to all other samples in the same class. May be useful for determining outliers.
median_correlations(cor_matrix, sample_classes = NULL, between_classes = FALSE)
cor_matrix |
the sample - sample correlations |
sample_classes |
the sample classes as a character or factor |
between_classes |
should the between class correlations be evaluated? |
The data.frame may have 5 columns, first three are always present,
the second two come up if between_classes = TRUE
:
the median correlation with other samples
the sample id, either the rowname or an index
the class of the sample. If not provided, set to "C1"
the class of the other sample
sample_class::compare_class
for easy grouping
data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.