Closed
Description
library(plotly)
library(crosstalk)
txhousing %>%
group_by(city) %>%
SharedData$new(~city, "Select a city") %>%
plot_ly(x = ~date, y = ~median) %>%
add_lines(alpha = 0.2) %>%
add_ribbons(
x = c(2016, 2017), ymin = c(150000, 160000), ymax = c(200000, 190000),
inherit = FALSE
)
Error: Columns `x`, `ymin`, `ymax` must be length 1 or 8602, not 2, 2, 2
This error isn't very helpful -- the error is occuring because the ribbon trace is inheriting the crosstalk key, but it shouldn't...
Metadata
Metadata
Assignees
Labels
No labels