How to choose variable to display in tooltip when using ggplotly?
You don’t need to modify the plotly object as suggested by @royr2. Just add label = name as third aesthetic ggplot(data = d, aes(x = seq, y = value, label = name)) + geom_line() + geom_point() and the tooltip will display name in addition to seq and value. The ggplotly help file says about tooltip … Read more