Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geom_GeomLabel() has yet to be implemented in plotly. #2425

Open
gshick opened this issue Feb 11, 2025 · 1 comment
Open

geom_GeomLabel() has yet to be implemented in plotly. #2425

gshick opened this issue Feb 11, 2025 · 1 comment

Comments

@gshick
Copy link

gshick commented Feb 11, 2025

library(ggplot2)
library(plotly)

end_points <- iris %>% 
  group_by(Species) %>% 
  filter(Sepal.Length == max(Sepal.Length))

# Create the plot
g = ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species, group = Species)) +
  geom_line() + 
  geom_label(data = end_points, aes(label = Sepal.Length), color = "white", vjust = -0.5) +
  theme_minimal()

ggplotly(g)

Result:
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

I would like to see this implemented. Thanks for making a great package available in R!

@romanzenka
Copy link

romanzenka commented Feb 21, 2025

This looks like a duplicate of #1954

#348 shows a sample code that lets you obtain list of unsupported ggplot2 geoms - so there is awareness of this. I am trying to figure out how to help get this functionality implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants