animated ggplotly bar chart does not work anymore
Open
Nobody has claimed this yet.
bug
difficulty: high
- Dominant language
- R
- Stars
- 2.7k
- Forks
- 641
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
library(plotly)
p <- mtcars %>% ggplot(aes(x = mpg, y = cyl, frame = hp)) + geom_bar(stat = "identity")
ggplotly(p)
This throws an error: Error in -data$group: invalid argument to unary operator. I'm using the latest versions of the packages, and R 3-5-3.
Previously that worked: I have tried with R 3-3-2, ggplot2 2-2-1 and plotly 4-6-0, and this works.
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 by running the supplied mtcars, ggplot, and ggplotly example with current package versions and compare it with the older versions reported as working. Trace the ggplotly conversion around the -data$group error; done means the animated bar chart renders without that error and the regression is covered by a test.
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
- 35/100