plotly.R
plotly.R copied to clipboard
Reversing Y Axis for Scatter Plot causes scale to disappear
data_set %>% plot_ly(x = ~win_vi1_data.gx, y = ~win_vi1_data.gy, type="scattergl", mode = "markers",
symbol= ~description, source = source_name
) %>% layout(
# title = "Dye Error Code Heat Map",
autosize = T,
xaxis = list(
title = "X axis"
),
yaxis = list(
title = "Y axis",
autorange = "reversed"
),
showlegend = TRUE
)
Marking autorange = "reversed" causes y axis scale to disappear completely as shown in above screenshot. without reversed it appears like this
For Testing this code can be used as well
plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length, type="scattergl", mode = "markers")%>% layout(
# title = "Dye Error Code Heat Map",
autosize = T,
xaxis = list(
title = "X axis"
),
yaxis = list(
title = "Y axis",
autorange = "reversed"
),
showlegend = TRUE
)
I believe this is now fixed