Add jitter to box plot using markers in plotly
问题 I made a boxplot: dat %>% plot_ly(y = ~xval, color = ~get(col), type = "box", boxpoints = "all", jitter = 0.7, pointpos = 0, marker = list(size = 3), source = shiny_source, key = shiny_key, hoverinfo = 'text', text = txt) but problem is that jittered points are not interactive and cannot be marked separately, so I came with an idea to add those points using add_markers : dat %>% plot_ly(y = ~xval, color = ~get(col), type = "box", boxpoints = FALSE, jitter = 0.7, pointpos = 0, marker = list