refdb_plot_tax_treemap | R Documentation |
Represent the hierarchical structure of the taxonomic information of a reference database as a set of nested rectangles (treemap).
refdb_plot_tax_treemap(x, cols = NULL, freq_labels = c(0.01, 0.003))
x |
a reference database. |
cols |
a vector of column names referring to taxonomic levels
to include in the treemap. If not provided ( |
freq_labels |
a numeric vector of length two to adjust the number of printed labels (see Details). Only the columns provided in the The number of labels printed are determined by The underlying graph is computed using the non-exported function
|
A ggplot2 (ggraph) object. This means the plot can be further customized using ggplot2 compatible functions.
lib <- read.csv(system.file("extdata", "baetidae_bold.csv", package = "refdb")) lib <- refdb_set_fields_BOLD(lib) refdb_plot_tax_treemap(lib)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.