Geometry does not show when using ggplotly function to convert ggplot plot
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
Geometry does not show when using ggplotly function to convert ggplot plot, but if I hover over where the geometry is supposed to be, a hover box shows. The following warning is also displayed. If this is not related to this warning, please let me know and I'll submit the question on Stack Overflow:
Warning message:
In geom2trace.default(dots[[1L]][[1L]], dots[[2L]][[1L]], dots[[3L]][[1L]]) :
geom_GeomLabel() 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
ganttplot <- ganttrify::ganttrify(
plot,
spots = plot,
by_date = TRUE,
exact_date = TRUE,
colour_palette = RColorBrewer::brewer.pal(8,"Set2"),
mark_years = TRUE,
hide_wp = TRUE,
month_number_label = FALSE,
month_date_label = TRUE,
x_axis_position = "bottom",
spot_fill = NA,
spot_size_text_relative = .8,
spot_fontface = "plain",
spot_border = NA,
) +
ggplot2::labs(title = "Test Plot")
ganttplot
plotly::ggplotly(ganttplot)


[sample_data.csv](https://github.com/plotly/plotly.R/files/12896318/sample_data.csv)
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
Comienza reproduciendo el ejemplo de R proporcionado con ggplotly e inspecciona la advertencia de geom2trace.default sobre geom_GeomLabel(). Determina cómo se representa la geometría faltante durante la conversión; se considera terminado cuando la geometría se renderiza en el gráfico convertido y la advertencia deja de aplicarse.
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
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100