Please implement geom_GeomXsidebar() and related geoms
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
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- plotly, r
- Lĩnh vực
- data-visualization
Hướng nghiên cứu
Bắt đầu bằng cách theo dõi cách ggplotly xử lý geom_GeomXsidebar và geom_GeomYsidebar, bao gồm các điểm truy cập geom_xsidehistogram và geom_ysidehistogram. So sánh đầu ra ggplot thông thường với biểu đồ đã chuyển đổi và xác minh rằng các biểu đồ histogram bên được kết xuất trong ggplotly, đồng thời giữ nguyên văn bản hover hiện có của geom_tile chính.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I tried to use plotly on ggplot graph that used geom_xsidehistogram and geom_ysidehistorgram, but when I did I got a warning that plotly was not yet implemented for geom_GeomXsidebar and geom_GeomYsidebar and suggestion to report it here. It would be lovely if plotly were implemented for these geoms.
My data structure was
master - a data frame containing:
- region (character)
- envir_var_elevation (numeric)
- loggdppc (numeric)
- value (numeric)
- reactive_value (numeric)
df_plot - a data frame containing:
- envir.group (numeric factor)
- loggdppc.group (numeric factor)
- value.squish (numeric)
- reactive_value.mean (numeric)
df_plot was created by taking the data from master binning elevation and loggdppc and then finding the mean in each bin combination.
Here is my plot code
p_elev_income = ggplot(df_plot, aes(x = envir.group, y = loggdppc.group, fill = value.squish,
text = glue("reactive adapt: {reactive_value.mean}"))) +
geom_tile() +
geom_xsidehistogram(data = master, aes(x = envir_var_elevation, y = after_stat(density)), binwidth = .01, inherit.aes = F) +
geom_ysidehistogram(data = master, aes(x = after_stat(density), y = loggdppc), binwidth = 0.08, inherit.aes = F) +
ggside(x.pos = "bottom", y.pos = "left") +
xlab(xlab_name) +
ylab("Log GDP per Capita") +
scale_fill_gradientn(colours = blue_red.colors,
name = scale_name,
limits = limits_val,
breaks = breaks_labels_val,
labels = breaks_labels_val,
values = rescale(rescale_val),
na.value = NA
) +
theme(panel.background = element_rect(fill = 'white', colour = 'grey'),
ggside.panel.scale.x = 0.2,
ggside.panel.scale.y = 0.2)
ggplotly(p_elev_income)
Here's what the plot looks like when plotted normally:
And here's what it looks like when plotted with plotly:
I was using plotly because I wanted the hover text/tool tip ability, and that functionality did work correctly for me. Unfortunately, the side histograms disappeared. Also for my use case, I only need the hover text/tool tip on the main geom_tile portion of the graphic having it also appear on the side histograms would just be a bonus.
- 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ự
-
bug triage_needed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ 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 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Incorrect coaches in games.csv Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
-
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