refdb_plot_tax_treemap {refdb} | R Documentation |
Reference database treemap
Description
Represent the hierarchical structure of the taxonomic information of a reference database as a set of nested rectangles (treemap).
Usage
refdb_plot_tax_treemap(x, cols = NULL, freq_labels = c(0.01, 0.003))
Arguments
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
|
Value
A ggplot2 (ggraph) object. This means the plot can be further customized using ggplot2 compatible functions.
Examples
lib <- read.csv(system.file("extdata", "baetidae_bold.csv", package = "refdb"))
lib <- refdb_set_fields_BOLD(lib)
refdb_plot_tax_treemap(lib)