R/plotly: how to project an arbitrary line to (x,y), (x,z) or (y,z) plane?
In many online resources we know how to project the contours of a surface. For example, in section “Surface Plot With Contours” from https://plotly.com/r/3d-surface-plots/. The method is to use argument contours
in plotly::add_surface
and specify project=list(z=TRUE)
.