heat_tree_plots: Get Heat Tree Plots

Description Usage Arguments Value See Also Examples

View source: R/heat-tree.R

Description

A function for getting multiple heat_tree plots per rank.

Usage

1
heat_tree_plots(obj, rank_list = NULL, title = TRUE, ...)

Arguments

obj

An object to be converted to a Taxmap object with create_taxmap.

rank_list

A vector of ranks used to generate heat_trees. Default: NULL

title

Can be a logical, NULL, or a string. The string can utilize {rank} to dynamically display the rank in the title via glue.

...

Any of the heat_tree parameters can be used to change the way the heat_tree output is displayed. Please see the heat_tree_parameters documentation for further explanation.

Value

A list of heat_tree plots.

See Also

heat_tree

create_taxmap, validate_MicrobiomeR_format, heat_tree_parameters

filter_obs

crayon

theme, margin, labs

Other Visualizations: alpha_diversity_plot, correlation_data, correlation_plots, correlation_plot, heat_tree_parameters, ordination_plots, ordination_plot, plot_limits, save_alpha_diversity_plots, save_correlation_plots, save_heat_tree_plots, save_ordination_plots, save_stacked_barplots, stacked_barplots, stacked_barplot, top_coefficients_barplot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
if(interactive()){
# This example uses data that are no longer available in the MicrobiomeR package,
# however, they can be easily generated with \code{\link{MicrobiomeR}{as_analyzed_format}}.
library(MicrobiomeR)
analyzed_silva <- as_MicrobiomeR_format(MicrobiomeR::raw_silva_2, "analyzed_format")
h_trees <- heat_tree_plots(analyzed_silva, rank_list = c("Phylum", "Class"))
h_trees$Class
 }

## End(Not run)

vallenderlab/MicrobiomeR documentation built on Aug. 30, 2019, 11:24 p.m.