Skip to content

Commit

Permalink
v_line: use scale_datetime for posixct
Browse files Browse the repository at this point in the history
  • Loading branch information
pvictor committed Jan 15, 2025
1 parent 9dc4342 commit bc93f82
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/layers.R
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ v_line <- function(vc,
vc <- v_scale_x_discrete(vc)
} else if (identical(scale_x, "date")) {
vc <- v_scale_x_date(vc)
} else if (identical(scale_x, "datetime")) {
vc <- v_scale_x_datetime(vc)
} else {
vc <- v_scale_x_continuous(vc)
}
Expand Down Expand Up @@ -338,6 +340,8 @@ v_area <- function(vc,
vc <- v_scale_x_discrete(vc)
} else if (identical(scale_x, "date")) {
vc <- v_scale_x_date(vc)
} else if (identical(scale_x, "datetime")) {
vc <- v_scale_x_datetime(vc)
} else {
vc <- v_scale_x_continuous(vc)
}
Expand Down Expand Up @@ -1540,6 +1544,8 @@ v_waterfall <- function(vc,
vc <- v_scale_x_discrete(vc)
} else if (identical(scale_x, "date")) {
vc <- v_scale_x_date(vc)
} else if (identical(scale_x, "datetime")) {
vc <- v_scale_x_datetime(vc)
} else if (identical(scale_x, "continuous")) {
vc <- v_scale_x_continuous(vc)
}
Expand Down

0 comments on commit bc93f82

Please sign in to comment.