I have am plotting a bar graph geom with a point geom layered on top of that like so:
plot_1 <- ggplot(results, aes(x=date, y = data, question_text=question_text,
val1 = val1)) +
geom_bar(stat = "identity", position = "dodge", aes(fill = Party)) +
geom_point(data=results, aes(x=date, y=math*.01), colour="blue", group = 1)
I then call the ggplotly command and overlay tooltips like so
ggplotly(plot_1, tooltip=c("question_text", "val1"))
However, this makes it such that, whenever I put my mouse over either a geom_point or a geom_bar, the tooltip pops up. How do I make it such that the tool tip only pops up when overlapping on the bar graphs?