Surface plot interprets dims 1 and 2 of a matrix to be y and x (should be reversed)
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- R
- Sterne
- 2.7k
- Forks
- 641
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
For example:
plot_ly(z = ~volcano, type = "surface")
Obviously, the 1st dimension of matrix volcano is interpreted as the 'y', while the 2nd dimension as the 'x'.
However, a more natural order is: 1st dimension of matrix to be 'x', while the 2nd dimension to be 'y'. Such interpretation is in other R packages such as MASS: the function kde2d() will returns x, y and z matrix, where the dim1 and 2 of z is x and y respectively.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit dem Beispiel plot_ly(z = ~volcano, type = "surface") und verfolge, wie die Matrixdimensionen für Oberflächenplots abgebildet werden. Vergleiche diese Konvention mit MASS::kde2d() und überprüfe anschließend, dass die erste Matrixdimension im gerenderten Surface auf x und die zweite auf y abgebildet wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- r
- Bereich
- data-visualization
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100