Closed
Description
If one creates a 3D scatter with markers and lines, both can be colored by one
dimension. However, when manually overwriting the colorbar limits only the
markers respond. This leads to completely wrong values indicated by the lines:
library(plotly)
test.plot <- mtcars %>%
plot_ly(x = ~hp, y = ~cyl, z = ~mpg, color = ~mpg,
type = "scatter3d", mode = "lines+markers")
# Note how the line changes color with the markers it passes through:
test.plot
# Note how the marker color matches the data and colorbar while the line
# ignores the limits and uses the original colors:
test.plot %>%
colorbar(limits = c(0, 100))