I am tring to create plotly
bar plot with scalling colors.
I have found out how to adjust color scaling by variable, but don't know how to choose another pallet. I would like to use RBrewerPallet
for example.
Here is an example.
library(plotly)
library(dplyr)
airquality %>% group_by(Month) %>% summarise(total = sum(Wind)) %>%
plot_ly(x = ~Month,
y = ~total,
type = 'bar',
marker = list(
color = ~total
))