Skip to content

Commit

Permalink
fix wrong variable use
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Jan 6, 2025
1 parent 0d6b578 commit ddae17c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/layout-align.R
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ ggplot_add.ggalign_design <- function(object, plot, object_name) {
recycle_each(cur_panel, self$n_cycle)
)
if (is_discrete_design(y_design) && scale_y$is_discrete() &&
!is.null(scale_x$range$range)) {
!is.null(scale_y$range$range)) {
# for discrete scale, the limits starts from zero in each
# panel
ylim <- ylim - (min(ylim) - 0.5)
Expand Down

0 comments on commit ddae17c

Please sign in to comment.