Plot survey relative biomass mass index
tidy_survey_index(dat, survey = c("SYN WCHG", "SYN HS", "SYN QCS", "SYN WCVI", "HBLL OUT N", "HBLL OUT S", "HBLL INS N", "HBLL INS S", "MSA HS", "IPHC FISS"), min_years = 3, year_range = NULL) plot_survey_index(dat, col = brewer.pal(9, "Greys")[c(3, 7)], max_cv = 0.4, max_set_fraction = 0.05, xlim = NULL, survey_cols = NULL, scale = TRUE, year_increment = 5, hide_y_axis = FALSE)
dat | For |
---|---|
survey | A character vector of survey abbreviations to include. |
min_years | The minimum number of years for a survey before it is included. |
year_range | If not |
col | A vector of two colours for the lines and shading. |
max_cv | A coefficient of variation above which a panel will be shaded as more uncertain. |
max_set_fraction | A fraction of positive sets above which a panel will be shaded as more uncertain. |
xlim | If not |
survey_cols | If not |
scale | Logical: scale the biomass by the maximum? |
year_increment | Increment for the year x axis. |
hide_y_axis | Logical: hide the y axis ticks and labels? |
# NOT RUN { get_survey_index("lingcod") %>% tidy_survey_index() %>% plot_survey_index() # }