Dimming of unselected points by both plotly and crosstalk makes points progressively fade away.
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- r
- Lĩnh vực
- data-visualization
Hướng nghiên cứu
Bắt đầu với ví dụ R có thể tái hiện sử dụng highlight_key(), ggplot(), ggplotly() và highlight() cùng với plotly_selected. Việc chọn hình chữ nhật lặp lại không được làm các điểm chưa chọn mờ dần theo từng lần, và workaround style(unselected=list(marker=list(opacity=1))) không còn cần thiết nữa.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
When I use crosstalk, selecting a rectangle multiple times causes other points to progressively dim away.
remotes::install_github("plotly/plotly.R")
library(plotly)
shared_data <- highlight_key(mtcars)
p <- ggplot(shared_data)+aes(cyl, mpg)+geom_point()
# Unselected points progressively fade as multiple selections are made
ggplotly(p) |>
highlight(on="plotly_selected",off="plotly_deselect")
I suspect this is some strange interaction between the usual dimming of unselected points by plotly and the dimming of unselected points via the crosstalk selection. A workaround that seems to fix the problem is to disable the usual plotly dimming, so the only dimming of points is done via crosstalk.
# Workaround:
ggplotly(p) |>
style(unselected=list(marker=list(opacity=1))) |>
highlight(on="plotly_selected",off="plotly_deselect")
PS I'm very excited by the possibilties crosstalk offers. I had a wow moment when I realised it worked with GGally::ggpairs.
- 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
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.
Issue khác của plotly/plotly.R
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
-
Data gets dropped in add_trace and consequently points have the wrong color if NA is present Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
-
save_image Error Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
Tất cả issue của plotly/plotly.R
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
pharmaverse/rtables#1123 · 1 bình luận ·
-
Trying to reassign a reactiveVal to the name of an existing reactiveVal doesn't overwrite the latter Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
RConsortium/rconsortium_website#649 · 2 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
posit-dev/r-shinylive#203 ·
-
add tidycjk and tidyEmoji Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100