insightsengineering / insightsengineering/ggplot2.utils

Try simple extension of `facet_grid` to remove specific levels of factor from plot

オープン
#3 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
R
スター
9
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

説明

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}
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。