Skip to content

ggplotly from plotly v2.0.16 incompatible with new ggplot2 v2.1.0 #481

Closed
@charliejhadley

Description

@charliejhadley

New version of ggplot2 appears to break ggplotly, see example from https://plot.ly/ggplot2/geom_polygon/ - is this due to ggplot2 now being built under R 3.2.4?

library(plotly)

dsamp <- diamonds[sample(nrow(diamonds), 1000), ]
qplot(carat, price, data=dsamp, colour=clarity)

ggplotly()

Error

Error in map_layout(panel, plot$facet, layer_data, plot$data) : 
  unused argument (plot$data)
In addition: Warning message:
Using size for a discrete variable is not advised. 

Session Info

Session info ----------------------------------------------------------------------------------
 setting  value                       
 version  R version 3.2.3 (2015-12-10)
 system   x86_64, darwin13.4.0        
 ui       RStudio (0.99.891)          
 language (EN)                        
 collate  en_GB.UTF-8                 
 tz       Europe/London               
 date     2016-03-04                  

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.10.0   2016-01-23 CRAN (R 3.2.3)                    
 digest        0.6.9    2016-01-08 CRAN (R 3.2.3)                    
 ggplot2     * 2.1.0    2016-03-01 CRAN (R 3.2.4)                    
 gridExtra     2.2.1    2016-02-29 CRAN (R 3.2.3)                    
 gtable        0.2.0    2016-02-26 CRAN (R 3.2.3)                    
 htmltools     0.3      2015-12-29 CRAN (R 3.2.3)                    
 htmlwidgets   0.6      2016-02-25 CRAN (R 3.2.3)                    
 httr          1.1.0    2016-01-28 CRAN (R 3.2.3)                    
 jsonlite      0.9.19   2015-11-28 CRAN (R 3.2.2)                    
 labeling      0.3      2014-08-23 CRAN (R 3.2.0)                    
 magrittr      1.5      2014-11-22 CRAN (R 3.2.0)                    
 memoise       1.0.0    2016-01-29 CRAN (R 3.2.3)                    
 munsell       0.4.3    2016-02-13 CRAN (R 3.2.3)                    
 plotly      * 2.0.16   2015-12-20 CRAN (R 3.2.3)                    
 plyr          1.8.3    2015-06-12 CRAN (R 3.2.0)                    
 R6            2.1.2    2016-01-26 CRAN (R 3.2.3)                    
 Rcpp          0.12.3   2016-01-10 CRAN (R 3.2.3)                    
 rsconnect     0.4.1.11 2016-03-04 Github (rstudio/rsconnect@2419667)
 scales        0.4.0    2016-02-26 CRAN (R 3.2.3)                    
 viridis       0.3.2    2015-12-31 CRAN (R 3.2.3)   

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions