Skip to content

Commit

Permalink
Make sure the limits being used are not NULL.
Browse files Browse the repository at this point in the history
Fixes #460
  • Loading branch information
schloerke committed Nov 20, 2023
1 parent 2fb12c0 commit 4a700d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/gg-plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ ggally_dot_and_box_no_facet <- function(data, mapping, ..., boxPlot = TRUE) {
if (horizontal) {
p <- p +
scale_x_discrete(
limits = rev(levels(eval_data_col(data, mapping$x)))
limits = rev(levels(as.factor(eval_data_col(data, mapping$x))))
) +
coord_flip()
}
Expand Down

0 comments on commit 4a700d4

Please sign in to comment.