Skip to content

Trivial RColorBrewer warning #2392

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
HenningLorenzen-ext-bayer opened this issue Sep 18, 2024 · 2 comments
Closed

Trivial RColorBrewer warning #2392

HenningLorenzen-ext-bayer opened this issue Sep 18, 2024 · 2 comments

Comments

@HenningLorenzen-ext-bayer
Copy link

HenningLorenzen-ext-bayer commented Sep 18, 2024

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?

Seems to be related to #2289.

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

Created on 2024-09-18 with reprex v2.1.1

@romanzenka
Copy link

#1999 would solve this issue

@ethanbass
Copy link

I would be happy to see this merged! These warnings do not seem useful.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants