Here is the program I used:
library(plotly)
mydata = read.csv(\"data_to_plot.txt\")
df = as.data.frame(mydata)
p <- df %>%
group_by(X) %>%
plo
You are probably looking for layout(xaxis = list(autorange = "reversed").
You can solve this by continuing to rotate the plot using turntable rotation. Originally, the axes are oriented with the largest values facing you. As you rotate, one by one they will become oriented the other way, then go back to where they started. This may be why autorange = "reversed"
doesn't work in 3d plots.
At the moment reversed axis range in 3d is not supported in plotly. For this reason autorange = "reversed"
doesn't work.
You can rotate the plot by setting x=-x
, and/or y=-y
. You can then remove the minus sign in the plot by using tickvals = list(-x_ticks)
and ticktext = list(x_ticks)
in layout. Haven't found a way to remove the minus signal from the hovertext. But I guess I can't have it all =)