Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Trivial RColorBrewer warning #2392

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

Trivial RColorBrewer warning #2392

HenningLorenzen-ext-bayer opened this issue Sep 18, 2024 · 0 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

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

No branches or pull requests

1 participant