Skip to contents

Make a bar plot for transect training group comparisons

Usage

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
)

Arguments

transect

data frame returned by read_transect

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

Value

A ggplot object

Examples

transect <- read_transect(training = TRUE)
show_compplot(transect, yr = 2023, site = '2', species = 'Halodule', varplo = 'Abundance')