Skip to content

Commit

Permalink
updates for ggplot2 3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Feb 27, 2024
1 parent bbab430 commit d8c045a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/gghistostats-helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
exec(geom_vline, xintercept = df_central$var, !!!centrality.line.args) +
scale_x_continuous(
sec.axis = sec_axis(
trans = ~.,
transform = ~.,
name = NULL,
labels = parse(text = df_central$expression),
breaks = df_central$var
Expand Down
2 changes: 1 addition & 1 deletion R/gghistostats.R
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ gghistostats <- function(
) +
scale_y_continuous(
sec.axis = sec_axis(
trans = ~ . / nrow(data),
transform = ~ . / nrow(data),
labels = function(x) insight::format_percent(x, digits = 0L),
name = "proportion"
)
Expand Down

0 comments on commit d8c045a

Please sign in to comment.