Warning message with geom_vline and geom_hline
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 2.7k
- Forks
- 641
- PR merge metrics
- No merged PRs in 30d
Description
I'm seeing a strange warning message when I use the geom_hline and geom_vline functions in plotly 4.10.0. It pops up when I run the first example from this page:
library(plotly)
library(ggplot2)
p <- ggplot(data=mtcars, aes(x=wt, y=mpg)) + geom_point() +
geom_vline(xintercept = 3)
ggplotly(p)
Here's the warning message I get:
Warning message:
`gather_()` was deprecated in tidyr 1.2.0.
Please use `gather()` instead.
This warning is displayed once every 8 hours.
Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated.
This message pops up even when the tidyr package isn't loaded. At the same time, the example chart looks fine, so this would seem to be a warning without an actual error.
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
Reproduce the warning with the linked horizontal/vertical shapes example using geom_vline, geom_hline, and ggplotly. Trace which conversion path emits the deprecated tidyr gather_() warning, then verify that the example still renders without the warning.
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
- 43/100