refdb_plot_tax_barplot: Barplots of the number of records for the most represented...

View source: R/refdb_plots.R

refdb_plot_tax_barplotR Documentation

Barplots of the number of records for the most represented taxa

Description

Generate a multipanel plot where, for each taxonomic level, a barplot represent the number of records available in the reference database for the most represented taxa.

Usage

refdb_plot_tax_barplot(x, show_n = 10)

Arguments

x

a reference database.

show_n

an integer value indicating the number of taxa to show in each panel.

Value

A ggplot object.

Examples

lib <- read.csv(system.file("extdata", "baetidae_bold.csv", package = "refdb"))
lib <- refdb_set_fields_BOLD(lib)
lib <- refdb_set_fields(lib, latitude = "lat", longitude = "lon")
refdb_plot_tax_barplot(lib)


refdb documentation built on Sept. 22, 2022, 5:07 p.m.