Skip to contents

Create comparison plots for multiple fish or time periods

Usage

plot_depth_comparison(
  habitat_data,
  comparison_var = "fish_id",
  plot_type = "boxplot"
)

Arguments

habitat_data

Data frame with presence/absence points and depth_m

comparison_var

Variable to compare across: "fish_id", "time_period", or "time_period_posix"

plot_type

Type of plot: "boxplot", "violin", "density_ridges", "smooth"

Value

ggplot object