ggplotly() to show geom_ribbon() with only upper and lower bounds strokes
Abierto
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
In the latest ggplto2 release, geom_ribbon() can only stroke the upper and lower bounds and I'm wondering whether it is possible for the ggplot-converted plotly graphic to also have this feature?
A small code to play around with:
library(ggplot2)
library(plotly)
#>
#> Attaching package: 'plotly'
#> The following object is masked from 'package:ggplot2':
#>
#> last_plot
#> The following object is masked from 'package:stats':
#>
#> filter
#> The following object is masked from 'package:graphics':
#>
#> layout
huron <- data.frame(year = 1875:1972, level = as.vector(LakeHuron))
p1 <- ggplot(huron, aes(year)) +
geom_ribbon(aes(ymin = level - 10, ymax = level + 10), fill = "grey", colour = "black")
p1

ggplotly(p1)

Created on 2022-02-18 by the reprex package (v2.0.1)
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 ejecutando el ejemplo de LakeHuron proporcionado con ggplot2 y ggplotly; después, rastrea cómo se convierte geom_ribbon(). Compara los gráficos de origen y los convertidos, y verifica que el gráfico resultante conserve trazos únicamente en los límites superior e inferior.
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
- 35/100