group in geom_line
Open
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 2.7k
- Forks
- 641
- PR merge metrics
- No merged PRs in 30d
Description
plotly::ggplotly is basically ignoring the group argument of ggplot2::geom_line(), is there a way to 'solve' it?
iris |>
ggplot2::ggplot(ggplot2::aes(Sepal.Length,Petal.Length,color=Species))+
ggplot2::geom_line(ggplot2::aes(group=1))

plotly::ggplotly(iris |>
ggplot2::ggplot(ggplot2::aes(Sepal.Length,Petal.Length,color=Species))+
ggplot2::geom_line(ggplot2::aes(group=1)))

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the provided R reproduction using plotly::ggplotly and ggplot2::geom_line(), then inspect how the group aesthetic is converted. Done means the resulting interactive plot respects group=1 instead of ignoring it, while preserving the example's colored Species lines.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100