Colour recycling without `by` variable
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 30/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- r
- Bereich
- data-visualization
Rechercherichtung
Beginne damit, die drei Plotting-Beispiele im Issue zu reproduzieren, und vergleiche tinyplot mit base R, wenn keine by-Variable angegeben ist. Verfolge das Verhalten der Farbwiederverwendung in tinyplot und prüfe verwandte Arbeiten in den Issues #410 und #476. Als erledigt gilt die Aufgabe, wenn die vorgesehenen Farbregeln ohne by festgelegt, implementiert und durch Regressionseispiele oder Tests abgedeckt sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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?
- Vorherrschende Sprache
- R
- Sterne
- 430
- Forks
- 24
- Ø Merge
- 14 Std. 17 Min.
- Gemergte PRs (30 T.)
- 8
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus grantmcdermott/tinyplot
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 63/100
grantmcdermott/tinyplot#759 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 67/100
grantmcdermott/tinyplot#664 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
grantmcdermott/tinyplot#663 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
Spineplot wishlistOffen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
grantmcdermott/tinyplot#660 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 62/100
grantmcdermott/tinyplot#659 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in grantmcdermott/tinyplot
Ähnliche Issues
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
bcgov/aqwarnings_shiny#128 ·
-
tech-debt
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
sagemathinc/sagebrush#3570 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug upkeep
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
phoible.feature() failsOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
ropensci/lingtypology#94 ·