Skip to content

Legend of facet_wrap/ facet_grid is out of screen [fix-ggplot2 branch] #316

Closed
@zippeurfou

Description

@zippeurfou

Code:

library(reshape2)
library(plotly)
sp <- ggplot(tips, aes(x=total_bill, y=tip/total_bill)) + geom_point(shape=1)

# Divide by levels of "sex", in the horizontal direction
d<- sp + facet_grid(. ~ sex)

(dd<-ggplotly(d))

Screenshot:
https://infinit.io/_/3568W95

Note how total_bill, Male and Female can't be totally seen.

SessionInfo:

> sessionInfo()
R version 3.2.2 (2015-08-14)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.10.5 (Yosemite)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] plotly_2.0.4       ggplot2_1.0.1.9003

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.2        digest_0.6.8       packrat_0.4.6-2    R6_2.1.1           grid_3.2.2         plyr_1.8.3         jsonlite_0.9.19    gtable_0.1.2       formatR_1.2.1      magrittr_1.5      
[11] scales_0.3.0       httr_1.0.0.9000    stringi_1.0-2      viridis_0.3.1      labeling_0.3       tools_3.2.2        stringr_1.0.0.9000 htmlwidgets_0.5    munsell_0.4.2      yaml_2.1.13       
[21] base64enc_0.1-3    colorspace_1.2-6   htmltools_0.2.6    knitr_1.11         gridExtra_2.0.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