Learn R Programming

growthTrendR (version 0.2.1)

plot_freq: plot frequency distribution by geo-location per species

Description

This function plots the frequency distribution by geo-location for each species

Usage

plot_freq(dt.freq, out.species = "all")

Value

A list of ggplot objects corresponding to the species requested via out.species. Each element of the list contains a faceted spatial plot of tree locations, with point size proportional to the number of samples.

Arguments

dt.freq

a table with class "cfs_freq", resulting from function CFS_freq()

out.species

species list, default is 'all' to output the frequency distribution for all species

Examples

Run this code

# loading processed data
dt.samples_trt <- readRDS(system.file("extdata", "dt.samples_trt.rds", package = "growthTrendR"))
dt.freq <- CFS_freq(
dt.samples_trt$tr_all_wide,
freq.label_data = "demo-samples",
freq.uid_level = "uid_radius")

plots.lst <- plot_freq(dt.freq)


Run the code above in your browser using DataLab