Skip to content

Commit

Permalink
Fix y_scale_breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
hansendx committed Nov 10, 2023
1 parent aa4d589 commit ff19777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/numeric_plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ y_scale_breaks <- function(column, limits = vector()) {
if (maximum >= 1000) {
maximum <- maximum + 499
}
if (maximum < 1000) {
if (maximum < 1000 && maximum > 100) {
interval <- 50
maximum <- maximum + 49
}
if (maximum < 100) {
if (maximum < 100 && maximum > 10) {
interval <- 5
maximum <- maximum + 4
}
Expand Down

0 comments on commit ff19777

Please sign in to comment.