I implemented this in a shiny app. I get x-axis coordinates but not y-axis. Can not figure out how to fix this.
Actually it is in a plotly contour plot. I also want to get the z-axis coordintate too.