I am struggling with setting a custom range / cutoff for the colour values in a plot_ly scatter plot.
data(mtcars)
plot_tmp <- plot_ly(data = mtcars,
marker = list(size=10, colorbar = "Hot"),
hovertext = ~mtcars[,3],
type = "scatter",
x = ~mtcars[,1],
y = ~mtcars[,2],
color = ~mtcars[,3])
plot_tmp

I tried using colorbar(limits = c(3,5)), but this only excludes everything from beeing coloured.
plot_tmp %>% colorbar(limits = c(250,350))

The desired output would be to set everything e.g. over the limit to the same value.