You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warning message from {RColorBrewer} can be confusing. Is this something the average {plotly} user should be concerned with and work around in his own code?
library(plotly)
#> Loading required package: ggplot2#> #> Attaching package: 'plotly'#> The following object is masked from 'package:ggplot2':#> #> last_plot#> The following object is masked from 'package:stats':#> #> filter#> The following object is masked from 'package:graphics':#> #> layout
plot_ly(mtcars) |> add_boxplot(y=~mpg, x=~am, color=~ as.factor(am))
#> Warning in RColorBrewer::brewer.pal(N, "Set2"): minimal value for n is 3, returning requested palette with 3 different levels#> Warning in RColorBrewer::brewer.pal(N, "Set2"): minimal value for n is 3, returning requested palette with 3 different levels
Activity
romanzenka commentedon Feb 21, 2025
#1999 would solve this issue
ethanbass commentedon May 17, 2025
I would be happy to see this merged! These warnings do not seem useful.