绘制 3D 表面,重命名轴的标题

plotly 3D surface, rename axis's title

下面是我尝试过的玩具示例。有什么问题吗?

library(plotly)
fig <- plot_ly(z = ~volcano)
fig <- fig %>% add_surface() %>%
  layout(
    xaxis = list(title = 'N'), 
    yaxis = list(title = 'R')
  )

fig

感谢您的宝贵时间。

尝试在 layout 中添加 scene:

library(plotly)

fig <- plot_ly(z = ~volcano)
fig <- fig %>% 
  add_surface() %>%
  layout(
    showlegend = F,
    scene = list(
      xaxis = list(title = 'N'), 
      yaxis = list(title = 'R')
    )
  )

fig