I am using the R programming language. I am following this tutorial over here: https://plotly.com/r/3d-line-plots/
I copy and pasted the following code and successfully c