Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9c0ff38

Browse filesBrowse files
committed
Follow up to #2125: fix copy/paste error
Thanks @LDSamson
1 parent a4b1581 commit 9c0ff38
Copy full SHA for 9c0ff38

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎R/layers2traces.R

Copy file name to clipboardExpand all lines: R/layers2traces.R
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -504,10 +504,10 @@ to_basic.GeomLinerange <- function(data, prestats_data, layout, params, p, ...)
504504

505505
# reshape data so that x/y reflect path data
506506
data$group <- seq_len(nrow(data))
507-
lay <- tidyr::pivot_longer(
508-
data = layout$layout, cols = c("ymin", "ymax"), values_to = "y", names_to = "recodeVariable"
509-
)
510-
lay <- as.data.frame(lay)
507+
data <- tidyr::pivot_longer(
508+
data = data, cols = c("ymin", "ymax"), values_to = "y", names_to = "recodeVariable"
509+
)
510+
data <- as.data.frame(data)
511511
data <- data[order(data$group), ]
512512
# fix the hovertext (by removing the "irrelevant" aesthetic)
513513
recodeMap <- p$mapping[dplyr::recode(data[["recodeVariable"]], "ymax" = "ymin", "ymin" = "ymax")]

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.