Integration with geom_phylopic()
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- plotly, r
- Domaine
- data-visualization
Piste de recherche
Commencez par exécuter le reprex R fourni avec geom_phylopic() et ggplotly() afin de reproduire l’erreur de geom non pris en charge. Lisez la gestion existante de ggplotly() pour les geoms non pris en charge et déterminez comment cette intégration est testée. C’est terminé lorsque l’exemple est rendu via ggplotly() sans l’erreur d’implémentation, tout en conservant l’image phylopic tracée et le comportement de l’infobulle.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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"))
- Langage dominant
- R
- Étoiles
- 2.7k
- Forks
- 641
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de plotly/plotly.R
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
-
Difficulté 3/5 1-2 jours Accessibilité débutants 68/100
-
Data gets dropped in add_trace and consequently points have the wrong color if NA is present Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 72/100
-
save_image Error Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 52/100
Toutes les issues de plotly/plotly.R
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
easystats/performance#950 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
briandconnelly/airnow#9 ·
-
Copy cohorts to keep old cohorts Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
OHDSI/CohortConstructor#774 ·
-
pre-review R TeX Track: 5 (DSAIS)
Difficulté 1/5 Moins d'une heure Accessibilité débutants 60/100
openjournals/joss-reviews#11330 · 7 commentaires ·