Build a contour plot using outer product function and plotly in R

Happy new year! Today I would like to share with you how I build a contour plot using outer product function and plotly in R. Consider the Rosenbrock banana function: The following R code uses outer function in R to build the contour of Rosenbrock function. And here is the graph:

Create your own website, free on WordPress.com.Create your own website.
Start free