0

I would like to know if it is possible to add a horizontal line with a hover text ability like the one in the screenshot below which will indicate the average value of the y-axis

library(plotly)

p <- plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length)

enter image description here

firmo23
  • 7,490
  • 2
  • 38
  • 114
  • 1
    [how-can-i-combine-a-line-and-scatter-on-same-plotly-chart](https://stackoverflow.com/questions/34444906/how-can-i-combine-a-line-and-scatter-on-same-plotly-chart) – maydin Aug 09 '19 at 00:09
  • that works but how can I put hover text on this line? – firmo23 Aug 09 '19 at 00:16

0 Answers0