Closed nicholasjhorton closed 6 years ago
See this example which specifies "top" for legend:
sessionInfo() R version 3.4.1 (2017-06-30) Platform: x86_64-apple-darwin15.6.0 (64-bit) Running under: macOS Sierra 10.12.6
Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib
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 [7] base
other attached packages: [1] mosaic_1.1.0 Matrix_1.2-12 mosaicData_0.16.0 [4] ggformula_0.6.2 ggplot2_2.2.1 lattice_0.20-35 [7] dplyr_0.7.4
loaded via a namespace (and not attached): [1] Rcpp_0.12.15 pillar_1.1.0 compiler_3.4.1 [4] git2r_0.21.0 plyr_1.8.4 bindr_0.1 [7] tools_3.4.1 digest_0.6.15 manipulate_1.0.1 [10] memoise_1.1.0 tibble_1.4.2 gtable_0.2.0 [13] pkgconfig_2.0.1 rlang_0.1.6 curl_3.1 [16] yaml_2.1.16 ggdendro_0.1-20 bindrcpp_0.2 [19] gridExtra_2.3 withr_2.1.1 httr_1.3.1 [22] stringr_1.2.0 knitr_1.19 devtools_1.13.5 [25] grid_3.4.1 mosaicCore_0.4.2 glue_1.2.0 [28] R6_2.2.2 tidyr_0.8.0 purrr_0.2.4 [31] magrittr_1.5 splines_3.4.1 scales_0.5.0 [34] MASS_7.3-48 assertthat_0.2.0 colorspace_1.3-2 [37] labeling_0.3 stringi_1.1.6 lazyeval_0.2.1 [40] munsell_0.4.3
This affected ggplot2 and ggformula. had && where I meant ||. While I was at it, I've added some more stuff: The directional legend positions are now available for the gg systems.
ggplot2
ggformula
&&
||
See this example which specifies "top" for legend:
Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib
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
[7] base
other attached packages: [1] mosaic_1.1.0 Matrix_1.2-12 mosaicData_0.16.0 [4] ggformula_0.6.2 ggplot2_2.2.1 lattice_0.20-35
[7] dplyr_0.7.4
loaded via a namespace (and not attached): [1] Rcpp_0.12.15 pillar_1.1.0 compiler_3.4.1
[4] git2r_0.21.0 plyr_1.8.4 bindr_0.1
[7] tools_3.4.1 digest_0.6.15 manipulate_1.0.1 [10] memoise_1.1.0 tibble_1.4.2 gtable_0.2.0
[13] pkgconfig_2.0.1 rlang_0.1.6 curl_3.1
[16] yaml_2.1.16 ggdendro_0.1-20 bindrcpp_0.2
[19] gridExtra_2.3 withr_2.1.1 httr_1.3.1
[22] stringr_1.2.0 knitr_1.19 devtools_1.13.5 [25] grid_3.4.1 mosaicCore_0.4.2 glue_1.2.0
[28] R6_2.2.2 tidyr_0.8.0 purrr_0.2.4
[31] magrittr_1.5 splines_3.4.1 scales_0.5.0
[34] MASS_7.3-48 assertthat_0.2.0 colorspace_1.3-2 [37] labeling_0.3 stringi_1.1.6 lazyeval_0.2.1
[40] munsell_0.4.3