diff --git a/R/plot_catch_at_age.R b/R/plot_catch_at_age.R index 754f9a43..5d403476 100644 --- a/R/plot_catch_at_age.R +++ b/R/plot_catch_at_age.R @@ -16,7 +16,7 @@ #' #' @param era String. Era of data. #' -#' Default: "time" +#' Default: NULL #' #' Options: "early", "time", "fore" (forecast), or NULL (all data) #' @@ -68,7 +68,7 @@ plot_catch_at_age <- function( dat, facet = NULL, - era = "time", + era = NULL, unit_label = NULL, scale_amount = 1, proportional = TRUE, diff --git a/man/plot_catch_at_age.Rd b/man/plot_catch_at_age.Rd index 87a0202b..df5059fd 100644 --- a/man/plot_catch_at_age.Rd +++ b/man/plot_catch_at_age.Rd @@ -7,7 +7,7 @@ plot_catch_at_age( dat, facet = NULL, - era = "time", + era = NULL, unit_label = NULL, scale_amount = 1, proportional = TRUE, @@ -31,7 +31,7 @@ NULL} \item{era}{String. Era of data. -Default: "time" +Default: NULL Options: "early", "time", "fore" (forecast), or NULL (all data)} diff --git a/tests/testthat/test-plot_catch_at_age.R b/tests/testthat/test-plot_catch_at_age.R index 3d4a57f2..19b7f2d6 100644 --- a/tests/testthat/test-plot_catch_at_age.R +++ b/tests/testthat/test-plot_catch_at_age.R @@ -13,6 +13,7 @@ test_that("plot_catch_at_age generates plots without errors", { plot_catch_at_age( stockplotr::example_data, facet = "area", + era = "time", unit_label = "fish", scale_amount = 1000, module = "CATCH_AT_AGE", @@ -28,6 +29,7 @@ test_that("plot_catch_at_age generates plots without errors", { stockplotr::example_data, unit_label = "fish", scale_amount = 1, + era = "fore", module = "CATCH_AT_AGE", interactive = FALSE, make_rda = FALSE,