Highlighting doesn't work after filtering on the same variable as the plot coloring
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- R
- Star
- 2.7k
- Fork
- 641
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
From @micahdh:
The problem occurs when you select a species from the dropdown and then lasso one graph -- the other graph doesn't change. When you only filter by other_factor (or don't filter at all) highlighting occurs as normal.
For what it's worth this issue occurs in my own script when I filter on any column -- regardless of if it's used for coloring or anything else. I only noticed that it matters which column you filter on while I was reproducing the problem.
Thank you for an otherwise amazing package!
require(crosstalk)
require(plotly)
iris$other_factor <- sample(x = c("a", "b", "c"), size = nrow(iris), replace = T)
iris_shared <- SharedData$new(iris)
bscols(widths = c(6, 6, 6, 6),
filter_select("species", "species", iris_shared, ~Species, multiple = T),
filter_select("otherfactor", "other factor", iris_shared, ~other_factor, multiple = T),
plot_ly(data = iris_shared, x = ~Sepal.Length, y = ~Sepal.Width, color = ~Species) %>%
add_markers() %>%
layout(dragmode = "lasso") %>%
highlight(on = "plotly_selected", off = "plotly_deselect"),
plot_ly(data = iris_shared, x = ~Petal.Length, y = ~Petal.Width, color = ~Species) %>%
add_markers() %>%
layout(dragmode = "lasso") %>%
highlight(on = "plotly_selected", off = "plotly_deselect")
)
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Chạy bản tái hiện R được cung cấp bằng cách sử dụng iris, SharedData, filter_select(), plot_ly() và highlight(). So sánh hành vi chọn bằng lasso sau khi lọc theo species hoặc other_factor; được xem là hoàn tất khi việc chọn các điểm trong một biểu đồ cập nhật biểu đồ còn lại, bất kể đã lọc theo cột nào.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- r
- Lĩnh vực
- data-visualization
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100