plotly / plotly/plotly.R

Warning message with geom_vline and geom_hline

Open
#2,138 2 comments 2 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.