boxuancui / DataExplorer

Automate Data Exploration and Treatment
http://boxuancui.github.io/DataExplorer/
Other
512 stars 88 forks source link

plot_str with 100+ columns #75

Closed srctaha closed 6 years ago

srctaha commented 6 years ago

When input data frame has 100+ columns, plot_str displays the last column as NA (NA).

num_cols <- 100
df.random <- data.frame(replicate(num_cols, sample(0:1, 10, rep=TRUE)))
DataExplorer::plot_str(df.random)

Generated output: image

devtools::session_info()

Session info ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 setting  value
 version  R version 3.5.1 (2018-07-02)
 system   x86_64, mingw32
 ui       RStudio (1.1.453)
 language (EN)
 collate  Japanese_Japan.932
 tz       Asia/Tokyo
 date     2018-07-04

Packages ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 package      * version    date       source
 assertthat     0.2.0      2017-04-11 CRAN (R 3.5.1)
 backports      1.1.2      2017-12-13 CRAN (R 3.5.0)
 base         * 3.5.1      2018-07-02 local
 bindr          0.1.1      2018-03-13 CRAN (R 3.5.1)
 bindrcpp       0.2.2      2018-03-29 CRAN (R 3.5.1)
 brew           1.0-6      2011-04-13 CRAN (R 3.5.0)
 colorspace     1.3-2      2016-12-14 CRAN (R 3.5.1)
 compiler       3.5.1      2018-07-02 local
 data.table     1.11.4     2018-05-27 CRAN (R 3.5.1)
 data.tree    * 0.7.6      2018-06-16 CRAN (R 3.5.1)
 DataExplorer   0.6.0      2018-05-30 CRAN (R 3.5.1)
 datasets     * 3.5.1      2018-07-02 local
 devtools       1.13.5     2018-02-18 CRAN (R 3.5.0)
 DiagrammeR     1.0.0      2018-03-01 CRAN (R 3.5.1)
 digest         0.6.15     2018-01-28 CRAN (R 3.5.1)
 downloader     0.4        2015-07-09 CRAN (R 3.5.1)
 dplyr          0.7.6      2018-06-29 CRAN (R 3.5.1)
 evaluate       0.10.1     2017-06-24 CRAN (R 3.5.1)
 ggplot2        2.2.1.9000 2018-06-26 Github (tidyverse/ggplot2@348b26f)
 glue           1.2.0      2017-10-29 CRAN (R 3.5.1)
 graphics     * 3.5.1      2018-07-02 local
 grDevices    * 3.5.1      2018-07-02 local
 grid           3.5.1      2018-07-02 local
 gridExtra      2.3        2017-09-09 CRAN (R 3.5.1)
 gtable         0.2.0      2016-02-26 CRAN (R 3.5.1)
 hms            0.4.2      2018-03-10 CRAN (R 3.5.1)
 htmltools      0.3.6      2017-04-28 CRAN (R 3.5.1)
 htmlwidgets    1.2        2018-04-19 CRAN (R 3.5.1)
 igraph         1.2.1      2018-03-10 CRAN (R 3.5.1)
 influenceR     0.1.0      2015-09-03 CRAN (R 3.5.1)
 jsonlite       1.5        2017-06-01 CRAN (R 3.5.1)
 knitr          1.20       2018-02-20 CRAN (R 3.5.1)
 lattice        0.20-35    2017-03-25 CRAN (R 3.5.1)
 lazyeval       0.2.1      2017-10-29 CRAN (R 3.5.1)
 magrittr       1.5        2014-11-22 CRAN (R 3.5.1)
 Matrix         1.2-14     2018-04-13 CRAN (R 3.5.1)
 memoise        1.1.0      2017-04-21 CRAN (R 3.5.0)
 methods      * 3.5.1      2018-07-02 local
 munsell        0.5.0      2018-06-12 CRAN (R 3.5.1)
 networkD3    * 0.4        2017-03-18 CRAN (R 3.5.1)
 pillar         1.2.3      2018-05-25 CRAN (R 3.5.1)
 pkgconfig      2.0.1      2017-03-21 CRAN (R 3.5.1)
 plyr           1.8.4      2016-06-08 CRAN (R 3.5.1)
 purrr          0.2.5      2018-05-29 CRAN (R 3.5.1)
 R6             2.2.2      2017-06-17 CRAN (R 3.5.1)
 RColorBrewer   1.1-2      2014-12-07 CRAN (R 3.5.0)
 Rcpp           0.12.17    2018-05-18 CRAN (R 3.5.1)
 readr          1.1.1      2017-05-16 CRAN (R 3.5.1)
 rgexf          0.15.3     2015-03-24 CRAN (R 3.5.1)
 rlang          0.2.1      2018-05-30 CRAN (R 3.5.1)
 rmarkdown      1.10       2018-06-11 CRAN (R 3.5.1)
 Rook           1.1-1      2014-10-20 CRAN (R 3.5.0)
 rprojroot      1.3-2      2018-01-03 CRAN (R 3.5.1)
 rstudioapi     0.7        2017-09-07 CRAN (R 3.5.1)
 scales         0.5.0      2017-08-24 CRAN (R 3.5.1)
 stats        * 3.5.1      2018-07-02 local
 stringi        1.1.7      2018-03-12 CRAN (R 3.5.0)
 stringr        1.3.1      2018-05-10 CRAN (R 3.5.1)
 tibble         1.4.2      2018-01-22 CRAN (R 3.5.1)
 tidyr          0.8.1      2018-05-18 CRAN (R 3.5.1)
 tidyselect     0.2.4      2018-02-26 CRAN (R 3.5.1)
 tools          3.5.1      2018-07-02 local
 utils        * 3.5.1      2018-07-02 local
 viridis        0.5.1      2018-03-29 CRAN (R 3.5.1)
 viridisLite    0.3.0      2018-02-01 CRAN (R 3.5.1)
 visNetwork     2.0.4      2018-06-14 CRAN (R 3.5.1)
 withr          2.1.2      2018-03-15 CRAN (R 3.5.1)
 XML            3.98-1.11  2018-04-16 CRAN (R 3.5.0)
 yaml           2.1.19     2018-05-01 CRAN (R 3.5.1)