### This gives results as expected ```r with_colorbar <- plot_ly() %>% add_markers(data = mtcars, x= ~ hp, y= ~mpg, color = ~wt) %>% add_lines(x = seq.int(from= 100, to= 300, length.out = 20), y = seq.int(from= 10, to= 30 , length.out = 20), line = list(color = "black")) with_colorbar ```  ### `hide_colorbar()` and ` colorbar(limits=c(1,10))` add markers to the line The two expressions below have the same behavior. ```r no_colorbar <- with_colorbar %>% hide_colorbar() modified_colorbar <- with_colorbar %>% colorbar(limits=c(1,10)) ``` The following warning is printed to the console in both cases: ``` A marker object has been specified, but markers is not in the mode Adding markers to the mode... ``` And markers are added to the line trace for both cases. #### `hide_colorbar()` output  #### `colorbar(limits=c(1,10))` output 