Take the example for plot_ly package:
plot_ly
library("plotly") z <- c( c(8.83,8.89,8.81,8.87,8.9,8.87), c(8.89,8.94,8.85,8.94,8.96,8.92