pfmc-assessments / indexwc

Estimate indices of abundance for west coast fish species
2 stars 1 forks source link

feat: include 0 in y limits for plot_indices() #12

Closed iantaylor-NOAA closed 1 year ago

iantaylor-NOAA commented 1 year ago

Tiny change to include 0 in vertical axis for plot_indices()

Makes the difference between panel on left and that on the right which were created by the following commands before and after the change, where the left panel makes the increase seem much more dramatic if you don't pay attention to the axis (it's a dramatic increase either way).

dir <- "\\\\nwcfile/FRAM/Assessments/CurrentAssessments/petrale_2023/data/wcgbts"
load(file.path(dir, "delta_gamma/index/sdmTMB_save.RData"))
index_areas %>% dplyr::filter(area == "coastwide") %>% plot_indices()

image

kellijohnson-NOAA commented 1 year ago

Great change @iantaylor-NOAA. Happy to bring this in and learn about ggplot2::expand_limits() 🤯 . Thank you!