Skip to content

Commit

Permalink
fix: fix issue #206 - user labels now respected
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHedmad committed Dec 20, 2024
1 parent db1e099 commit 2c7bb5d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions R/upset.R
Original file line number Diff line number Diff line change
Expand Up @@ -1084,8 +1084,12 @@ upset = function(
user_y_scale = scale_y_discrete()
} else {
user_y_scale = user_y_scale[[1]]
user_y_scale$limits = y_scale$limits
user_y_scale$labels = y_scale$labels
if (is.null(user_y_scale$limits)) {
user_y_scale$limits = y_scale$limits
}
if (length(user_y_scale$labels) == 0) {
user_y_scale$labels = y_scale$labels
}
y_scale = NULL
}

Expand Down

0 comments on commit 2c7bb5d

Please sign in to comment.