add_trace: control the color
问题 I have a plot where I have first trace in gray that will be overplotted by other traces in colors. My issue is that in plotly -version 4.7.1. as well as in version 4.8.0. I can't adjust the color. One year ago this code would work: mysim=data.frame(x=rep(1:4,4),y=rbinom(16,10,0.5),id=rep(1:4,each=4)) my_colors<-c( ## add the standard plotly colors '#1f77b4', #// muted blue '#ff7f0e', #// safety orange '#2ca02c', #// cooked asparagus green '#d62728' #// brick red ) plot_ly() %>% add_trace(x=1