accGraph {expowo} | R Documentation |
Create graphics of species discoveries accumulation and nomenclatural changes
Description
Produces graphics of the dynamics of species description and
historical nomenclature changes within any family or genus provided. It is
designed to create graphics based on the dataframe resulted from
powoSpecies
. The graph type can be selected by two arguments
(spp_acc and spp_changes) and then multiple graphs for any different
taxonomic groups within the input data can be produced automatically in a
single run.
Usage
accGraph(inputdf = NULL,
verbose = TRUE,
spp_acc = TRUE,
spp_changes = TRUE,
spp_changes_col = NULL,
genus_plots = TRUE,
save = FALSE,
dir = "results_accGraph",
filename = "cumulative_discovery_",
format = "pdf")
Arguments
inputdf |
A dataframe generated using |
verbose |
Logical, if |
spp_acc |
Logical. Setting to |
spp_changes |
Logical. Setting to |
spp_changes_col |
Define the name of a column in the main input data
for which the species changes will be considered. For example, if densities
and jitters should be presented for each genus in the same graphic, then set
|
genus_plots |
Logical. If |
save |
Logical, if |
dir |
Pathway to the computer's directory, where the file will be saved
provided that the argument |
filename |
Name of the output file to be saved. The default is to create a file entitled cumulative_discovery_. |
format |
A character vector related to the file format of the graph to be saved. The default is "pdf" to save the output in Portable Document Format (.pdf), but you can also choose "jpg" to save in Joint Photographic Experts Group (.jpg), "tiff" to save in Tag Image File Format (.tiff) or "png" to save in Portable Network Graphics (.png). |
Value
Objects of class c("gg", "ggplot") and saves the output on disk.
Author(s)
Debora Zuanny & Domingos Cardoso
See Also
Examples
## Not run:
library(expowo)
accGraph(inputdf = "output",
verbose = TRUE,
spp_acc = TRUE,
spp_changes = TRUE,
spp_changes_col = "genus",
genus_plots = TRUE,
save = FALSE,
dir = "results_accGraph",
filename = "cumulative_discovery_Cyperaceae",
format = "pdf")
## End(Not run)