Reputation: 426
Below is the toy example I have attempted. Is anything wrong with it?
library(plotly)
fig <- plot_ly(z = ~volcano)
fig <- fig %>% add_surface() %>%
layout(
xaxis = list(title = 'N'),
yaxis = list(title = 'R')
)
fig
Thanks for your time.
Upvotes: 2
Views: 462
Reputation: 30474
Try adding scene
in layout
:
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
Upvotes: 2