GeomTextRepel() kicking error in plot_ly
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- R
- Estrellas
- 2.7k
- Forks
- 641
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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)
})
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comience en geom2trace.default con el ejemplo de ggplotly proporcionado e inspeccione cómo se gestiona la capa GeomTextRepel no compatible. Compare las conversiones de geom existentes y, después, verifique que el ejemplo produzca etiquetas visibles sin la advertencia de geom no compatible.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- r
- Área
- data-visualization
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 30/100