insightsengineering / insightsengineering/ggplot2.utils
Try simple extension of `facet_grid` to remove specific levels of factor from plot
- Ngôn ngữ chính
- R
- Star
- 9
- Fork
- 1
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Motivation: If we want to compare the BEP vs. All population using the `margin = TRUE` in `facet_grid()` works. However, it also gives us the non-BEP facets. We might not need/want to show this.
Idea: We could inherit from `facet_grid` and add additional argument `droplevels` which could be a list with one element per factor used, which can specify which levels not to have in the final plot. See https://cran.r-project.org/web/packages/ggplot2/vignettes/extending-ggplot2.html
Provenance:
```
Creator: Sabanes Bove, Daniel {MDBR~Basel}
```
Hướng dẫn đóng góp
Hướng nghiên cứu
Start by reading the facet_grid behavior and the ggplot2 extending vignette linked in the issue. Define how an inherited facet_grid extension would accept a droplevels list for each factor and verify that selected levels are absent while the remaining facets and margin behavior are preserved.
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
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- 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