Integration with geom_phylopic()
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- plotly, r
- Bereich
- data-visualization
Rechercherichtung
Beginne damit, das bereitgestellte R-reprex mit geom_phylopic() und ggplotly() auszuführen, um den Fehler aufgrund des nicht unterstützten Geoms zu reproduzieren. Lies die bestehende ggplotly()-Behandlung für nicht unterstützte Geoms und ermittle, wie diese Integration getestet wird. Erledigt ist die Aufgabe, wenn das Beispiel über ggplotly() ohne den Implementierungsfehler gerendert wird und dabei das geplottete Phylopic-Bild sowie das Tooltip-Verhalten erhalten bleiben.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Hello,
When developing a shiny app for a data visualisation dashboard, I encountered an issue that geom_phylopic() isn't integrated with plotly yet. I have pasted the error below. Is there any plans to have this integrated? I (think I) have created a reprex showing two plots that work and the one with plotly with the error.
Thanks,
Jo
geom_GeomPhylopic() has yet to be implemented in plotly.
If you'd like to see this geom implemented,
Please open an issue with your example code at
https://github.com/ropensci/plotly/issues
library(rphylopic)
library(ggplot2)
library(plotly)
# get image from phylopic and set up df
silhouette.img <- get_phylopic(uuid = get_uuid(name = "Sphyrnidae", n=1)) # hammerhead
silhouette.df <- data.frame(x=1, y=9)
# make some fake data
df = data.frame(x=c(1:10),
y=c(1:10))
# this plot works
p = ggplot() +
geom_point(data = df, aes(x=x, y=y)) +
theme_bw() +
# geom_phylopic(data = silhouette.df, aes(x = x, y = y),
# size = 1, col='purple',
# img = silhouette.img) +
xlim(0,10)
p %>% ggplotly(tooltip = c("x"))
# this plot works
p = ggplot() +
geom_point(data = df, aes(x=x, y=y)) +
theme_bw() +
geom_phylopic(data = silhouette.df, aes(x = x, y = y),
size = 1, col='purple',
img = silhouette.img) +
xlim(0,10)
p
# this plot does not work
p = ggplot() +
geom_point(data = df, aes(x=x, y=y)) +
theme_bw() +
geom_phylopic(data = silhouette.df, aes(x = x, y = y),
size = 1, col='purple',
img = silhouette.img) +
xlim(0,10)
p %>% ggplotly(tooltip = c("x"))
- Vorherrschende Sprache
- R
- Sterne
- 2.7k
- Forks
- 641
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
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 plotly/plotly.R
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 72/100
-
save_image Error Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 52/100
Alle Issues in plotly/plotly.R
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
easystats/performance#950 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
briandconnelly/airnow#9 ·
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
OHDSI/CohortConstructor#774 ·