View source: R/correlate_covariates.R
correlate_factors_with_covariates | R Documentation |
Function to correlate factor values with external covariates.
correlate_factors_with_covariates(
object,
covariates,
factors = "all",
groups = "all",
abs = FALSE,
plot = c("log_pval", "r"),
alpha = 0.05,
return_data = FALSE,
transpose = FALSE,
...
)
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.