Skip to content

Commit 72a2727

Browse files
committed
fix layout reference in GeomRug
1 parent f9e3f2a commit 72a2727

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/layers2traces.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,7 @@ utils::globalVariables(c("xmin", "xmax", "y", "size"))
513513
#' @export
514514
to_basic.GeomRug <- function(data, prestats_data, layout, params, p, ...) {
515515
# allow the tick length to vary across panels
516+
layout <- layout$layout
516517
layout$tickval_y <- 0.03 * abs(layout$y_max - layout$y_min)
517518
layout$tickval_x <- 0.03 * abs(layout$x_max - layout$x_min)
518519
data <- merge(data, layout[c("PANEL", "x_min", "x_max", "y_min", "y_max", "tickval_y", "tickval_x")])

0 commit comments

Comments
 (0)