Created
July 31, 2017 21:23
-
-
Save atyre2/1f09ef79d7ca8d23021b259114255f8f to your computer and use it in GitHub Desktop.
example code for so
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tidyverse) | |
xx <- read_table2(" 1 family1 0.8690661709 0.751969991 0.7188319163 0.8329348587 0.887535770 | |
2 family1 0.2191712498 0.378020942 0.8583653572 0.4347398167 0.463576331 | |
3 family1 0.6999901198 0.641613472 0.3160536611 0.6978992328 0.648399558 | |
4 family3 0.7372355657 0.538900863 0.7362216445 0.7604946053 0.822828410 | |
5 family1 0.7096292505 0.598671265 0.2544588205 0.6133470555 0.607725992 | |
6 family1 0.6360280758 0.566566355 0.5877906233 0.6997789522 0.546953210 | |
7 family1 0.5991758243 0.616002671 0.8369985343 0.8206614441 0.818448365 | |
8 family1 0.8904527922 0.716208368 0.9011345475 0.5670958449 0.727816837 | |
9 family2 0.1452406058 0.207274998 0.4986928476 0.1686444875 0.189754451 | |
10 family2 0.2377809815 0.082862006 0.0558082817 0.1867538810 0.141118673 | |
11 family1 0.4882507205 0.424101322 0.4894468566 0.6359970719 0.572929654 | |
12 family1 0.5040555221 0.655347206 0.9268933483 0.8367227125 0.732448666 | |
13 family1 0.0856226049 0.046513356 0.1497139722 0.0876913564 0.073817098 | |
14 family1 0.9586301369 0.816411264 0.3596417819 0.7656790406 0.549204786 | |
15 family3 0.2922308717 0.303084732 0.3677670036 0.2650845542 0.204274362 | |
16 family2 0.2482501613 0.191236472 0.1830795154 0.2468249229 0.212140334 | |
17 family1 0.5728203862 0.579948215 0.7685731435 0.5923199879 0.446989122 | |
18 family3 0.5570867413 0.860123051 0.9803810036 0.9566881201 0.967919171 | |
19 family1 0.8799546114 0.867326001 0.9713356022 0.9283920046 0.935100788 | |
20 family1 0.5139480650 0.721119537 0.8503378561 0.7767748131 0.751471843 | |
21 family1 0.5965680578 0.693541084 0.7780013246 0.7469886270 0.641316419 | |
22 family1 0.9637233268 0.909563137 0.4890930201 0.7989575169 0.805173486 | |
23 family1 0.2917425898 0.276042683 0.1808922172 0.2787900377 0.326883297 | |
24 family1 0.3257636782 0.669006752 0.7963276549 0.6331725305 0.684705500 | |
25 family3 0.5373867317 0.625906504 0.7515330573 0.5929084663 0.328429846 | |
26 family1 0.9521024127 0.955539653 0.9733179892 0.9433938480 0.946105017 | |
27 family3 0.9890352690 0.838456206 0.2913191125 0.3878896802 0.698469015 | |
28 family3 0.5321956531 0.327110375 0.1245472471 0.4338672900 0.361111518 | |
29 family3 0.8184056056 0.802647838 0.7679651401 0.9041813537 0.934241315", | |
col_names = c("rn","source", "x", "y", "z", "f", "g")) | |
library(GGally) | |
ggpairs(xx[,-1], aes(colour = source, alpha = 0.4)) | |
# see example at http://i.imgur.com/g1jKUUd.png | |
sessionInfo() | |
#> R version 3.4.0 (2017-04-21) | |
#> Platform: x86_64-apple-darwin15.6.0 (64-bit) | |
#> Running under: macOS Sierra 10.12.5 | |
#> | |
#> Matrix products: default | |
#> BLAS: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRblas.0.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 base | |
#> | |
#> other attached packages: | |
#> [1] GGally_1.3.1 dplyr_0.7.2 purrr_0.2.2.2 | |
#> [4] readr_1.1.1 tidyr_0.6.3 tibble_1.3.3 | |
#> [7] ggplot2_2.2.1.9000 tidyverse_1.1.1 | |
#> | |
#> loaded via a namespace (and not attached): | |
#> [1] Rcpp_0.12.11 RColorBrewer_1.1-2 cellranger_1.1.0 | |
#> [4] compiler_3.4.0 plyr_1.8.4 bindr_0.1 | |
#> [7] forcats_0.2.0 tools_3.4.0 digest_0.6.12 | |
#> [10] lubridate_1.6.0 jsonlite_1.5 evaluate_0.10 | |
#> [13] nlme_3.1-131 gtable_0.2.0 lattice_0.20-35 | |
#> [16] pkgconfig_2.0.1 rlang_0.1.1.9000 psych_1.7.5 | |
#> [19] yaml_2.1.14 parallel_3.4.0 haven_1.0.0 | |
#> [22] bindrcpp_0.2 xml2_1.1.1 httr_1.2.1 | |
#> [25] stringr_1.2.0 knitr_1.16 hms_0.3 | |
#> [28] rprojroot_1.2 grid_3.4.0 reshape_0.8.6 | |
#> [31] glue_1.1.1 R6_2.2.1 readxl_1.0.0 | |
#> [34] foreign_0.8-67 rmarkdown_1.6 modelr_0.1.0 | |
#> [37] reshape2_1.4.2 magrittr_1.5 backports_1.1.0 | |
#> [40] scales_0.4.1.9000 htmltools_0.3.6 rvest_0.3.2 | |
#> [43] assertthat_0.2.0 mnormt_1.5-5 colorspace_1.3-2 | |
#> [46] labeling_0.3 stringi_1.1.5 lazyeval_0.2.0 | |
#> [49] munsell_0.4.3 broom_0.4.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment