Does a surface created in plotly have to come from a rectangular df? Can that data frame have NA's in it? I have a data set of elevation coordinates that is rhombohedral with NA's filling the space to make it rectangular. I would like to do something like this:
Exemplary Goal
library(plotly)
# volcano is a numeric matrix that ships with R
fig <- plot_ly(z = ~volcano)
fig <- fig %>% add_surface()
fig
Data
basin_data_plotly <- readr::read_csv("https://gitlab.com/Bryanrt-geophys/Thesis_GitHub/-/raw/nono_branch/data/wrangled/model_1/basin_data_plotly")
I tried removing my Y column (basin_data_plotly[ , -1]) but that did not seem to work. Any advice on how to make the something like the fallowing work?
Starting Point
library(plotly)
# volcano is a numeric matrix that ships with R
fig <- plot_ly(z = basin_data_plotly)
fig <- fig %>% add_surface()
fig