Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Unable to run the code in my laptop

I generated a graph online https://plot.ly/~ysingh/7/#plot then I am generating the code for R but somehow that code does not run in my laptop. I get the error:

Error in eval(expr, envir, enclos) : attempt to apply non-function
In addition: Warning messages:
1: ‘plotly’ is deprecated.
Use ‘ggplotly’ instead.
See help(“Deprecated”)
2: ‘plotly’ is deprecated.
Use ‘plot_ly’ instead.
See help(“Deprecated”)