Skip to content

Commit e6f1901

Browse files
Fixed the way GeomStep was handeled. Closes plotly#2011
1 parent 4bb1e44 commit e6f1901

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

R/layers2traces.R

+3-2
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ to_basic.GeomLine <- function(data, prestats_data, layout, params, p, ...) {
252252

253253
#' @export
254254
to_basic.GeomStep <- function(data, prestats_data, layout, params, p, ...) {
255-
prefix_class(data, "GeomPath")
255+
prefix_class(ggplot2:::stairstep(data, direction = params$direction), "GeomPath")
256256
}
257257

258258
#' @export
@@ -623,7 +623,8 @@ to_basic.GeomQuantile <- function(data, prestats_data, layout, params, p, ...){
623623
}
624624

625625
#' @export
626-
to_basic.default <- function(data, prestats_data, layout, params, p, ...) {
626+
to_basic.default<- function(data, prestats_data, layout, params, p, ...) {
627+
627628
data
628629
}
629630

0 commit comments

Comments
 (0)