phy_heatmap | R Documentation |
Make a quick heatmap of selected features, also transforming internally
phy_heatmap( physeq, variable, physeq_transformation = "identity", taxa = "all", aggregation_samples = "median", taxa_into_rows = TRUE, scale = "row", add_sample_size = TRUE, angle_col = "90", legend = FALSE, treeheight_row = 20, treeheight_col = 20, legend_labels = NULL )
physeq |
A phyloseq object |
variable |
The variable to consider for clustering |
physeq_transformation |
The transformation you want to apply to your data. Default is |
taxa |
A facultative list of taxa to subset the phyloseq by. Default is |
aggregation_samples |
If you want to perform variable-wise aggregation. the allowed aggregation methods here are |
taxa_into_rows |
A |
scale |
The |
add_sample_size |
A |
angle_col |
A |
legend |
A |
treeheight_row |
A |
treeheight_col |
A |
legend_labels |
A |
A pheatmap
plot object. you can convert it into a ggplot2 object (to some extent) with pheatmap_ggplot <- ggplotify::as.ggplot(returned_pheatmap_object)[[2]]
data(enterotype) phy_heatmap(physeq = enterotype, variable = "SeqTech", aggregation_samples = "median", taxa_into_rows = TRUE, scale = "row", add_sample_size = TRUE, angle_col = 45, legend = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.