Description Usage Arguments Value
View source: R/correlate_covariates.R
Function to correlate factor values with external covariates.
1 2 3 4 5 6 7 8 9 10 11 12 |
object |
a trained |
covariates |
|
factors |
character vector with the factor name(s), or numeric vector with the index of the factor(s) to use. Default is 'all'. |
groups |
character vector with the groups names, or numeric vector with the indices of the groups of samples to use, or "all" to use samples from all groups. |
abs |
logical indicating whether to take the absolute value of the correlation coefficient (default is |
plot |
character indicating whether to plot Pearson correlation coefficiens ( |
alpha |
p-value threshold |
return_data |
logical indicating whether to return the correlation results instead of plotting |
transpose |
logical indicating whether to transpose the plot |
... |
extra arguments passed to |
A corrplot
(if plot=="r"
) or pheatmap
(if plot=="log_pval"
) or the underlying data.frame if return_data is TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.