GeomTextRepel() kicking error in plot_ly
Personne n'a encore pris cette issue.
- Langage dominant
- R
- Étoiles
- 2.7k
- Forks
- 641
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Trying to add labels to a plot_ly chart with GeomTextRepel() from ggrepel packge but am getting this error:
"Warning in geom2trace.default(dots[[1L]][[1L]], dots[[2L]][[1L]], dots[[3L]][[1L]]) :
geom_GeomTextRepel() 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"
.... so here I am lol Another issue is that the labels aren't actually showing up... but I'm assuming that's due to the apparent lack of coordination between geomtextrepel and plot_ly
AHR_data <- read_csv(file = "Final_AHR_Report.csv", col_names = TRUE)
fluidRow(
box(
width = 12,
status = "warning",
plotlyOutput("National_Line")
),
)
),
output$National_Line <- renderPlotly({
AHR_data_filtered <- reactive({
AHR_data %>%
select(States, Year, input$Variables) %>%
group_by(Year) %>%
summarise(mean = mean(get(input$Variables)))
})
p <- AHR_data_filtered() %>%
ggplot(aes(x = Year, y = mean, label=mean, group=1)) +
geom_line() +
geom_point(color = "Orange", size = 3) +
geom_text_repel() +
ylab(paste(as.character(input$Variables), "National Average")) +
xlab("Year")
ggplotly(p)
})
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.
Piste de recherche
Commencez par geom2trace.default avec l’exemple ggplotly fourni et examinez la manière dont la couche GeomTextRepel non prise en charge est traitée. Comparez les conversions de geom existantes, puis vérifiez que l’exemple produit des libellés visibles sans l’avertissement concernant les geoms non pris en charge.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- r
- Domaine
- data-visualization
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 30/100