-
Notifications
You must be signed in to change notification settings - Fork 632
Closed
Labels
Description
Cannot reverse 3D axis
library(plotly)
mtcars$am[which(mtcars$am == 0)] <- 'Automatic'
mtcars$am[which(mtcars$am == 1)] <- 'Manual'
mtcars$am <- as.factor(mtcars$am)
p <- plot_ly(mtcars, x = ~wt, y = ~hp, z = ~qsec, color = ~am, colors = c('#BF382A', '#0C4B8E')) %>%
add_markers() %>%
layout(scene = list(xaxis = list(title = 'Weight', autorange = "reversed"),
yaxis = list(title = 'Gross horsepower'),
zaxis = list(title = '1/4 mile time')))
p