Plotly: manual fillcolor for boxplot

白昼怎懂夜的黑 提交于 2021-02-11 12:29:06

问题


I've a boxplot, but I want to use manual colors for the fill of eachone.

code:

p <- plot_ly(tvs, x = ~ecommerce, y = ~precio_actual, color = ~ecommerce, type = "box") %>%
  layout(boxmode = "group")

p

colors I need to use:

ecommerce_colors <- c("lacuracao" = "#ffda33","ripley" = "#802D69","falabella" = "#BED800",
                      'wong' = "red", "tottus" = "#fa3e14")

来源:https://stackoverflow.com/questions/56879211/plotly-manual-fillcolor-for-boxplot

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!