Considering the mtcars dataset, I'm trying to plot a scatter plot.
ggplot(mtcars,
aes(x = hp,
y = wt)) +
geom_point() +
stat_smooth()
I know how to create an arrow to label data values using annotations in R but how can I create a bidirectional arrow as annotation? I'm wondering if below figure could be created in plotly R using annotations