Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

geom_hex() and facet_grid() plotly graph not rendering #4

@evanhenry

Description

@evanhenry

Hi,
in ggplot, the facet_wrap() renders a graph, but ggplotly() does not, although i can still when viewing the data plotly still highlights the data on the graphs despite not being able to see it.

sample of data:

 Temp Humidity    dB     Hz        Hive
1 22.20    68.33 39.38 135.74 Treatment 1
2 22.08    69.83 39.36 141.37 Treatment 2
3 21.93    71.23 39.37 135.88 Treatment 3
4 21.81    71.43 39.35 135.81 Control 1
5 21.61    72.18 39.35 133.41 Control 2
6 21.35    74.20 39.34 131.77 Control 3
#works fine w/o plotly
plt<- ggplot(hives,aes(x=Temp,y=Humidity)) + geom_hex(bins=20) 
plt + facet_grid( ~ Hive)
ggplotly() ##plotly does not work

ggplot:
ggplot
plotly:
plotly


devtools::session_info()
Session info ---------------------------------------------------------------
 setting  value                       
 version  R version 3.2.4 (2016-03-10)
 system   x86_64, darwin13.4.0        
 ui       RStudio (0.99.483)          
 language (EN)                        
 collate  en_CA.UTF-8                 
 tz       America/Montreal            
 date     2016-04-18                  

Packages -------------------------------------------------------------------
 package     * version date       source        
 assertthat    0.1     2013-12-06 CRAN (R 3.2.0)
 base64enc     0.1-3   2015-07-28 CRAN (R 3.2.0)
 colorspace    1.2-6   2015-03-11 CRAN (R 3.2.0)
 DBI           0.3.1   2014-09-24 CRAN (R 3.2.0)
 devtools    * 1.11.0  2016-04-12 CRAN (R 3.2.4)
 digest        0.6.9   2016-01-08 CRAN (R 3.2.3)
 dplyr         0.4.3   2015-09-01 CRAN (R 3.2.0)
 ggplot2     * 2.1.0   2016-03-01 CRAN (R 3.2.4)
 gridExtra   * 2.2.1   2016-02-29 CRAN (R 3.2.4)
 gtable        0.2.0   2016-02-26 CRAN (R 3.2.3)
 hexbin      * 1.27.1  2015-08-19 CRAN (R 3.2.0)
 htmltools     0.3.5   2016-03-21 CRAN (R 3.2.4)
 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)
 lattice       0.20-33 2015-07-14 CRAN (R 3.2.4)
 lazyeval      0.1.10  2015-01-02 CRAN (R 3.2.0)
 lintr       * 1.0.0   2016-04-16 CRAN (R 3.2.5)
 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      * 3.4.13  2016-04-12 CRAN (R 3.2.4)
 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.4  2016-03-26 CRAN (R 3.2.4)
 reshape2      1.4.1   2014-12-06 CRAN (R 3.2.0)
 rex           1.1.1   2016-03-11 CRAN (R 3.2.4)
 rstudioapi    0.5     2016-01-24 CRAN (R 3.2.3)
 scales        0.4.0   2016-02-26 CRAN (R 3.2.3)
 stringi       1.0-1   2015-10-22 CRAN (R 3.2.0)
 stringr     * 1.0.0   2015-04-30 CRAN (R 3.2.0)
 tidyr         0.4.1   2016-02-05 CRAN (R 3.2.3)
 viridis       0.3.4   2016-03-12 CRAN (R 3.2.4)
 withr         1.0.1   2016-02-04 CRAN (R 3.2.3)
 yaml          2.1.13  2014-06-12 CRAN (R 3.2.0)

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