diff --git a/DESCRIPTION b/DESCRIPTION index ab26e41..a4ca1d2 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -65,4 +65,4 @@ Remotes: Encoding: UTF-8 LazyData: true Roxygen: list(markdown = TRUE) -RoxygenNote: 7.3.1 +RoxygenNote: 7.3.2 diff --git a/NAMESPACE b/NAMESPACE index 9dfc452..93593a1 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -135,6 +135,7 @@ importFrom(rlang,enquo) importFrom(rlang,quo_name) importFrom(rlang,sym) importFrom(rosettafish,en2fr) +importFrom(scales,comma) importFrom(stats,as.formula) importFrom(stats,binomial) importFrom(stats,coef) diff --git a/R/catches.R b/R/catches.R index d614677..4811eea 100644 --- a/R/catches.R +++ b/R/catches.R @@ -223,6 +223,7 @@ plot_catch <- function(dat, values = pal, drop = FALSE, breaks = gears, labels = gears ) + + scale_y_continuous(labels = scales::comma) + coord_cartesian(xlim = xlim + c(-0.5, 0.5), expand = FALSE) + xlab("") + ylab(ylab_gg) + ggplot2::theme(legend.position = "bottom") + diff --git a/R/gfplot.R b/R/gfplot.R index 7b512ec..c33224b 100644 --- a/R/gfplot.R +++ b/R/gfplot.R @@ -26,6 +26,7 @@ #' update.formula formula as.formula density sd #' @importFrom methods as #' @importFrom grDevices chull +#' @importFrom scales comma #' @importFrom stats t.test #' @importFrom utils read.csv #' @importFrom rosettafish en2fr