Skip to content

geom_boxplot fill trigger error [fix-ggplot2 branch] #327

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

Closed
zippeurfou opened this issue Dec 2, 2015 · 1 comment
Closed

geom_boxplot fill trigger error [fix-ggplot2 branch] #327

zippeurfou opened this issue Dec 2, 2015 · 1 comment

Comments

@zippeurfou
Copy link

Code:

> library(ggplot2)
> dat <- data.frame(cond = factor(rep(c("A","B","C","D"), each=200)), col = factor(rep(c("C1","C2"), each=400)), rating = c(rnorm(200),rnorm(200, mean=.8),rnorm(200, mean=.4), rnorm(200, mean=.2)))
> r<-ggplot(dat, aes(x=cond, y=rating)) + geom_boxplot(outlier.shape = NA, aes(fill=col))
> gg <- ggplotly(r)
Error in col2rgb(x) : invalid color name 'C1'

ggplot:https://infinit.io/_/cyc8FkB

sessionInfo:

 devtools::session_info()
Session info -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 setting  value                       
 version  R version 3.2.2 (2015-08-14)
 system   x86_64, darwin13.4.0        
 ui       RStudio (0.99.486)          
 language (EN)                        
 collate  en_US.UTF-8                 
 tz       America/New_York            
 date     2015-12-02                  

Packages ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 package     * version    date       source                           
 base64enc     0.1-3      2015-07-28 CRAN (R 3.2.0)                   
 colorspace    1.2-6      2015-03-11 CRAN (R 3.2.0)                   
 devtools      1.9.1.9000 2015-11-30 Github (hadley/devtools@b4edf3e) 
 digest        0.6.8      2014-12-31 CRAN (R 3.2.0)                   
 formatR       1.2.1      2015-09-18 CRAN (R 3.2.0)                   
 ggplot2     * 1.0.1.9003 2015-12-01 Github (hadley/ggplot2@23a748f)  
 gridExtra     2.0.0      2015-07-14 CRAN (R 3.2.0)                   
 gtable        0.1.2      2012-12-05 CRAN (R 3.2.0)                   
 htmltools     0.2.6      2014-09-08 CRAN (R 3.2.0)                   
 htmlwidgets   0.5        2015-06-21 CRAN (R 3.2.0)                   
 httr          1.0.0.9000 2015-11-30 Github (hadley/httr@733530e)     
 jsonlite      0.9.19     2015-11-28 CRAN (R 3.2.2)                   
 knitr         1.11       2015-08-14 CRAN (R 3.2.2)                   
 labeling      0.3        2014-08-23 CRAN (R 3.2.0)                   
 magrittr      1.5        2015-11-17 Github (smbache/magrittr@00a1fe3)
 memoise       0.2.1      2014-04-22 CRAN (R 3.2.0)                   
 munsell       0.4.2      2013-07-11 CRAN (R 3.2.0)                   
 packrat       0.4.6-2    2015-11-25 Github (rstudio/packrat@2d9b533) 
 plotly      * 2.0.5      2015-12-01 Github (ropensci/plotly@ba21238) 
 plyr          1.8.3      2015-06-12 CRAN (R 3.2.0)                   
 R6            2.1.1      2015-08-19 CRAN (R 3.2.0)                   
 Rcpp          0.12.2     2015-11-15 CRAN (R 3.2.2)                   
 scales        0.3.0      2015-08-25 CRAN (R 3.2.0)                   
 stringi       1.0-2      2015-11-30 Github (Rexamine/stringi@6d9ed3b)
 stringr       1.0.0.9000 2015-11-30 Github (hadley/stringr@a67f8f0)  
 viridis       0.3.1      2015-10-11 CRAN (R 3.2.0)                   
 yaml          2.1.13     2014-06-12 CRAN (R 3.2.0)       

@cpsievert
Copy link
Collaborator

This is now "fixed" (see also #345)

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

2 participants