Skip to content

Commit

Permalink
fixed scales::label_number_si() deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
hugzsoubrier committed Dec 14, 2023
1 parent 3bd5704 commit 6a49130
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 38 deletions.
Binary file modified .DS_Store
Binary file not shown.
3 changes: 2 additions & 1 deletion R/pyramid.R
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ pyramid_brks <- function(x, n = 3) {

#' @noRd
pyramid_labs <- function(x) {
scales::label_number_si()(abs(x))
#scales::label_number_si()(abs(x))
scales::label_number()(abs(x))
}

#' @noRd
Expand Down
4 changes: 2 additions & 2 deletions R/theme.R
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ epi_ggtheme <- function (base_family = "sans",
}
else {
ret <- ret + theme(axis.line.x = element_line(color = axis_col,
linewidth = 0.15))
linewidth = 0.15),

ret <- ret + theme(axis.line.y = element_line(color = axis_col,
axis.line.y = element_line(color = axis_col,
linewidth = 0.15))
}
}
Expand Down
42 changes: 7 additions & 35 deletions man/epi_ggtheme.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6a49130

Please sign in to comment.