Is it possible to show tooltips for only one layer in ggplot + plotly, even if multiple layers share one aestetic. In this example I would like to show only the blue tooltip at the blue line from the geom_smooth layer but don't show the black tooltip for each point.
library(tidyverse)
library(plotly)
library(palmerpenguins)
gg <- ggplot(penguins, aes(x=flipper_length_mm, y=body_mass_g)) +
geom_point() +
geom_smooth(se = FALSE)
ggplotly(gg, tooltip=c("y")) %>%
layout(hovermode = "x unified")