View source: R/show_compplot.R
show_compplot | R Documentation |
Make a bar plot for transect training group comparisons
show_compplot(
transect,
yr,
site,
species = c("Halodule", "Syringodium", "Thalassia", "Halophila", "Ruppia"),
varplo = c("Abundance", "Blade Length", "Short Shoot Density"),
base_size = 18,
xtxt = 10,
size = 1
)
transect |
data frame returned by |
yr |
numeric for year of training data to plot |
site |
chr string indicating site results to plot |
species |
chr string indicating which species to plot |
varplo |
chr string indicating which variable to plot |
base_size |
numeric indicating text scaling size for plot |
xtxt |
numeric indicating text size for x-axis labels |
size |
numeric indicating line size |
A ggplot
object
transect <- read_transect(training = TRUE)
show_compplot(transect, yr = 2024, site = '3', species = 'Halodule', varplo = 'Abundance')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.