Line segments in a facet_wrap disappear when maximizing the viewer using ggplotly()
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
Hi,
I am trying to make a line chart with facets with free_y scale.
When I see the plot in the viewer everything looks fine:

But when I Zoom the Viewer and maximize the window some segments from the lines disappear.

The tooltip however is visible when I roll with the cursor over the missing line.
I have the same issue when I look it into Rmarkdown with fig.height=8, fig.width=11
ploty version - 4.7.1.9000
g5 <- ggplot(mobile_hor_top14, aes(x=month_p, y= freq, group=1,
text = paste('CPED: ', Month.Code..Main.CPED.Date.,
'<br>Count:', freq))) +
geom_line(alpha=0.8, colour="blue", size = 1)+
scale_x_continuous(breaks = seq(from=min(mobile_hor_top14$month_p), to=max(mobile_hor_top14$month_p), by=2), labels = gsub(" ", "",unique(mobile_hor_top14$Month.Code..Main.CPED.Date.))[seq(1,
diff(range(mobile_hor_top14$month_p))+1, 2)]) +
xlab("")+
ylab("") +
facet_wrap(~prod_name_add, ncol=2, scales="free_y") +
theme(legend.position="none") +
theme(axis.text.x = element_text(angle = 25, hjust = 1),
strip.text = element_text(size = 8, margin = margin(.1, 0, 0.1, 0, "cm")),
strip.placement = "outside")
ggplotly(g5, tooltip="text")
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
Reproduzca el ejemplo proporcionado de ggplotly() con facet_wrap(scales="free_y") en el Viewer y en R Markdown con las dimensiones indicadas, comparando la representación normal y maximizada. No se indica ningún archivo fuente ni ninguna prueba; se considera terminado cuando los segmentos de línea siguen siendo visibles en ambos diseños y los tooltips continúan funcionando.
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