Nested grouping
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- r
調査の方向性
plot2のエントリーポイントから始め、first_treatとidを使ってissueのポイントおよび線プロットの呼び出しを再現します。ネストしたグループ化またはbycol引数で、色と線グループ用の別々の変数をどのように表現するかを定義し、そのうえで、処置コホートによる色分けを維持しながら、線が単位間で再び結合しなくなることを確認します。
索引モデルが issue の本文から書いたものです。
説明
It would be nice if we could support nested grouping. (Or, put differently, allow colours to vary/repeat across units.) This would mostly be useful for line plots where we want to avoid joining the end of one line with the start of another. The idea is similar to how ggplot2 allows you to specific aes(col = var1, group = var2) separately.
Here is an illustration using the following dataset. The setting is a difference-in-differences research design with staggered treatment. So we have treatment cohorts (first_treat) superimposed on individual units (id).
- First, points. (Fine.)
plot2(y ~ time | first_treat, dat)

- Second, lines. (Not fine, because we have lines rejoining across units in the same cohort.)
plot2(y ~ time | first_treat, dat, type = "l")

Of course, we could group (colour) by the individual IDs. This stops the rejoining, but means that we lose the colouring by treatment group (which is the interesting thing from a causal inference perspective).
plot2(y ~ time | id, dat, type = "l", legend = FALSE)

I don't have a solution right now, but it probably requires a new argument like bycol. On the formula side, we could potentially represent this via a / nesting interaction. So the call would become plot2(y ~ time | first_treat / id, dat, type = "l"), i.e. units are nested within first treatment cohorts.
- 主要言語
- R
- スター
- 430
- フォーク
- 24
- 平均マージ
- 14時間 17分
- マージ済み PR(30日)
- 8
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
grantmcdermott/tinyplot のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
grantmcdermott/tinyplot#759 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 67/100
grantmcdermott/tinyplot#664 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
grantmcdermott/tinyplot#663 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Spineplot wishlistオープン
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
grantmcdermott/tinyplot#660 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
grantmcdermott/tinyplot#659 ·
メンテナーはふだん 1 日以内に返信
grantmcdermott/tinyplot の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
bcgov/aqwarnings_shiny#128 ·
-
tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
sagemathinc/sagebrush#3570 ·
メンテナーはふだん 1 日以内に返信
-
bug upkeep
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
ropensci/lingtypology#94 ·