Skip to content

Commit

Permalink
Add scales::comma to the y-axis of plot_catch (so there are commas
Browse files Browse the repository at this point in the history
between the thousands if the numbers go that high
  • Loading branch information
cgrandin committed Oct 7, 2024
1 parent 7e3df31 commit 668024a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ Remotes:
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1
RoxygenNote: 7.3.2
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions R/catches.R
Original file line number Diff line number Diff line change
Expand Up @@ -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") +
Expand Down
1 change: 1 addition & 0 deletions R/gfplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 668024a

Please sign in to comment.