Colour recycling without `by` variable
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 30/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- r
調査の方向性
まず、issue にある 3 つのプロット例を再現し、by 変数が指定されていない場合の tinyplot と base R を比較します。tinyplot における色のリサイクル動作を追跡し、issues #410 と #476 の関連する作業を確認します。意図した by なしの色のルールが決定・実装され、回帰例またはテストでカバーされれば完了です。
索引モデルが issue の本文から書いたものです。
説明
In #410 we had improved the colour recycling when groups are defined using a by variable. This still seems to be fine to me.
When there is no by variable, i.e., only y and/or x, then only a single color is used because there is only a single by group. This makes sense in many situations but sometimes you want to color every point/line/bar with a different color (as in #476). This is possible in base R's plot() but in tinyplot() it requires setting up a suitable by variable.
As a simple example, consider plotting points 1:5 in colors 1:5:
plot(1:5, col = 1:5, pch = 19, cex = 5)
tinyplot(1:5, col = 1:5, pch = 19, cex = 5)
tinyplot(1:5, col = 1:5, pch = 19, cex = 5, by = factor(1:5), legend = FALSE)
- In base R just setting
col = 1:5is sufficient for getting five points in five different colors. - In tinyplot this is identified as a scenaria with only a single
bygroup and hence only one color is used. - This can only be changed easily with a categorical
byvariable.
Maybe in the case without by variable we need to reconsider the color recycling rules?
- 主要言語
- 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 ·