View source: R/variable_correlation_heatmap.R
variable_correlation_heatmap | R Documentation |
Computes the correlation of numerical variables with taxa
variable_correlation_heatmap(phyloseq_obj, variables, treatment = NULL,
subset = NULL, classification = NULL, method = "spearman", limits = c(-0.8, 0.8),
colors = "default", significance_color = "white", cores = 1, treatment_labels = NULL,
sample_labels = NULL, classification_labels = NULL)
phyloseq_obj |
A |
variables |
Numerical factors within the in the
|
treatment |
Column name as a |
subset |
A factor within the |
classification |
Column name as a |
method |
Which correlation method to calculate, "pearson", "spearman". |
limits |
The range for the legend, smaller limits will accentuate smaller correlations. |
colors |
the palette to use for the heatmap, default is viridis. |
significance_color |
the color to use for the significance stars. |
cores |
|
treatment_labels |
a vector of names to be used as labels for treatments/facets. |
sample_labels |
a vector of names to be used as labels for Samples. |
classification_labels |
a vector of names to be used as labels for the taxonomic classifications. |
data.table
permute_rho
phylosmith
variable_correlation_heatmap(soil_column, variables = 'Day',
treatment = c('Matrix', 'Treatment'), subset = 'Amended',
classification = 'Phylum', method = 'spearman', cores = 1,
colors = c("#2C7BB6", "white", "#D7191C"),
significance_color = 'black')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.