DataSlingers / clustRviz

Compute Convex (Bi)Clustering Solutions via Algorithmic Regularization
https://DataSlingers.github.io/clustRviz/
GNU General Public License v3.0
19 stars 14 forks source link

Error in dynamic path visualization when following tutorial: #110

Open dansenglund opened 4 years ago

dansenglund commented 4 years ago

I was following the example from the quickstart and got the following error:

>plot(carp_fit, type = "dynamic_path")

nframes and fps adjusted to match transition
geom_path: Each group consists of only one observation. Do you need to adjust the group aesthetic?
geom_path: Each group consists of only one observation. Do you need to adjust the group aesthetic?
Error in magick::image_animate(anim, fps, loop = if (loop) 0 else 1) :                                                  
  argument 'fps' must be a factor of 100

[Edited by MW: Added triple-backticks for code formatting]

I don't know if this is an issue of my local configuration, but I thought I should mention it

michaelweylandt commented 4 years ago

Not a problem with you specifically. This is a weird bug I've been trying to track down for a while but can't get a handle on. It's somewhere in the GIF rendering stack, because we never set an fps argument anywhere.

Totally random guess: does print(plot(carp_fit, type = "dynamic_path"), fps = 50) help?

dansenglund commented 4 years ago

Same error

michaelweylandt commented 4 years ago

Crud. That's supposed to be how fps gets set. I have a sneaking suspicion that this isn't really a problem with fps but is lower down in ImageMagick / R bindings and getting propagated up weirdly. We'll have to make this a long-term TODO.

Can you copy and paste the output of

options(width = 100); print(sessioninfo::session_info("clustRviz"))

here for future debugging purposes?

dansenglund commented 4 years ago
>options(width = 100); print(sessioninfo::session_info("clustRviz"))

─ Session info ───────────────────────────────────────────────────────────────────────────────────
 setting  value                       
 version  R version 4.0.0 (2020-04-24)
 os       macOS Catalina 10.15.4      
 system   x86_64, darwin17.0          
 ui       RStudio                     
 language (EN)                        
 collate  en_US.UTF-8                 
 ctype    en_US.UTF-8                 
 tz       America/New_York            
 date     2020-05-12                  

─ Packages ───────────────────────────────────────────────────────────────────────────────────────
 package      * version   date       lib source        
 animation      2.6       2018-12-11 [1] CRAN (R 4.0.0)
 askpass        1.1       2019-01-13 [1] CRAN (R 4.0.0)
 assertthat     0.2.1     2019-03-21 [1] CRAN (R 4.0.0)
 backports      1.1.6     2020-04-05 [1] CRAN (R 4.0.0)
 base64enc      0.1-3     2015-07-28 [1] CRAN (R 4.0.0)
 BH             1.72.0-3  2020-01-08 [1] CRAN (R 4.0.0)
 bitops         1.0-6     2013-08-17 [1] CRAN (R 4.0.0)
 callr          3.4.3     2020-03-28 [1] CRAN (R 4.0.0)
 caTools        1.18.0    2020-01-17 [1] CRAN (R 4.0.0)
 cli            2.0.2     2020-02-28 [1] CRAN (R 4.0.0)
 cluster        2.1.0     2019-06-19 [1] CRAN (R 4.0.0)
 clustRviz    * 0.1.0     2020-05-12 [1] local         
 codetools      0.2-16    2018-12-24 [1] CRAN (R 4.0.0)
 colorspace     1.4-1     2019-03-18 [1] CRAN (R 4.0.0)
 crayon         1.3.4     2017-09-16 [1] CRAN (R 4.0.0)
 crosstalk      1.1.0.1   2020-03-13 [1] CRAN (R 4.0.0)
 curl           4.3       2019-12-02 [1] CRAN (R 4.0.0)
 data.table     1.12.8    2019-12-09 [1] CRAN (R 4.0.0)
 dendextend     1.13.4    2020-02-28 [1] CRAN (R 4.0.0)
 desc           1.2.0     2018-05-01 [1] CRAN (R 4.0.0)
 digest         0.6.25    2020-02-23 [1] CRAN (R 4.0.0)
 dplyr          0.8.5     2020-03-07 [1] CRAN (R 4.0.0)
 egg            0.4.5     2019-07-13 [1] CRAN (R 4.0.0)
 ellipsis       0.3.0     2019-09-20 [1] CRAN (R 4.0.0)
 evaluate       0.14      2019-05-28 [1] CRAN (R 4.0.0)
 fansi          0.4.1     2020-01-08 [1] CRAN (R 4.0.0)
 farver         2.0.3     2020-01-16 [1] CRAN (R 4.0.0)
 fastmap        1.0.1     2019-10-08 [1] CRAN (R 4.0.0)
 foreach        1.5.0     2020-03-30 [1] CRAN (R 4.0.0)
 gclus          1.3.2     2019-01-07 [1] CRAN (R 4.0.0)
 gdata          2.18.0    2017-06-06 [1] CRAN (R 4.0.0)
 gganimate      1.0.5     2020-02-09 [1] CRAN (R 4.0.0)
 ggplot2        3.3.0     2020-03-05 [1] CRAN (R 4.0.0)
 ggrepel        0.8.2     2020-03-08 [1] CRAN (R 4.0.0)
 glue           1.4.0     2020-04-03 [1] CRAN (R 4.0.0)
 gplots         3.0.3     2020-02-25 [1] CRAN (R 4.0.0)
 gridExtra      2.3       2017-09-09 [1] CRAN (R 4.0.0)
 gtable         0.3.0     2019-03-25 [1] CRAN (R 4.0.0)
 gtools         3.8.2     2020-03-31 [1] CRAN (R 4.0.0)
 heatmaply      1.1.0     2020-03-28 [1] CRAN (R 4.0.0)
 hexbin         1.28.1    2020-02-03 [1] CRAN (R 4.0.0)
 hms            0.5.3     2020-01-08 [1] CRAN (R 4.0.0)
 htmltools      0.4.0     2019-10-04 [1] CRAN (R 4.0.0)
 htmlwidgets    1.5.1     2019-10-08 [1] CRAN (R 4.0.0)
 httpuv         1.5.2     2019-09-11 [1] CRAN (R 4.0.0)
 httr           1.4.1     2019-08-05 [1] CRAN (R 4.0.0)
 isoband        0.2.1     2020-04-12 [1] CRAN (R 4.0.0)
 iterators      1.0.12    2019-07-26 [1] CRAN (R 4.0.0)
 jsonlite       1.6.1     2020-02-02 [1] CRAN (R 4.0.0)
 KernSmooth     2.23-16   2019-10-15 [1] CRAN (R 4.0.0)
 labeling       0.3       2014-08-23 [1] CRAN (R 4.0.0)
 later          1.0.0     2019-10-04 [1] CRAN (R 4.0.0)
 lattice        0.20-41   2020-04-02 [1] CRAN (R 4.0.0)
 lazyeval       0.2.2     2019-03-15 [1] CRAN (R 4.0.0)
 lifecycle      0.2.0     2020-03-06 [1] CRAN (R 4.0.0)
 magick         2.3       2020-01-24 [1] CRAN (R 4.0.0)
 magrittr       1.5       2014-11-22 [1] CRAN (R 4.0.0)
 MASS           7.3-51.5  2019-12-20 [1] CRAN (R 4.0.0)
 Matrix         1.2-18    2019-11-27 [1] CRAN (R 4.0.0)
 mgcv           1.8-31    2019-11-09 [1] CRAN (R 4.0.0)
 mime           0.9       2020-02-04 [1] CRAN (R 4.0.0)
 munsell        0.5.0     2018-06-12 [1] CRAN (R 4.0.0)
 nlme           3.1-147   2020-04-13 [1] CRAN (R 4.0.0)
 openssl        1.4.1     2019-07-18 [1] CRAN (R 4.0.0)
 pillar         1.4.4     2020-05-05 [1] CRAN (R 4.0.0)
 pkgbuild       1.0.8     2020-05-07 [1] CRAN (R 4.0.0)
 pkgconfig      2.0.3     2019-09-22 [1] CRAN (R 4.0.0)
 pkgload        1.0.2     2018-10-29 [1] CRAN (R 4.0.0)
 plogr          0.2.0     2018-03-25 [1] CRAN (R 4.0.0)
 plotly         4.9.2.1   2020-04-04 [1] CRAN (R 4.0.0)
 plyr           1.8.6     2020-03-03 [1] CRAN (R 4.0.0)
 praise         1.0.0     2015-08-11 [1] CRAN (R 4.0.0)
 prettyunits    1.1.1     2020-01-24 [1] CRAN (R 4.0.0)
 processx       3.4.2     2020-02-09 [1] CRAN (R 4.0.0)
 progress       1.2.2     2019-05-16 [1] CRAN (R 4.0.0)
 promises       1.1.0     2019-10-04 [1] CRAN (R 4.0.0)
 ps             1.3.3     2020-05-08 [1] CRAN (R 4.0.0)
 purrr          0.3.4     2020-04-17 [1] CRAN (R 4.0.0)
 qap            0.1-1     2017-02-27 [1] CRAN (R 4.0.0)
 R6             2.4.1     2019-11-12 [1] CRAN (R 4.0.0)
 RColorBrewer   1.1-2     2014-12-07 [1] CRAN (R 4.0.0)
 Rcpp           1.0.4.6   2020-04-09 [1] CRAN (R 4.0.0)
 RcppEigen      0.3.3.7.0 2019-11-16 [1] CRAN (R 4.0.0)
 registry       0.5-1     2019-03-05 [1] CRAN (R 4.0.0)
 reshape2       1.4.4     2020-04-09 [1] CRAN (R 4.0.0)
 rlang          0.4.6     2020-05-02 [1] CRAN (R 4.0.0)
 rprojroot      1.3-2     2018-01-03 [1] CRAN (R 4.0.0)
 rstudioapi     0.11      2020-02-07 [1] CRAN (R 4.0.0)
 scales         1.1.1     2020-05-11 [1] CRAN (R 4.0.0)
 seriation      1.2-8     2019-08-27 [1] CRAN (R 4.0.0)
 shiny          1.4.0.2   2020-03-13 [1] CRAN (R 4.0.0)
 sourcetools    0.1.7     2018-04-25 [1] CRAN (R 4.0.0)
 stringi        1.4.6     2020-02-17 [1] CRAN (R 4.0.0)
 stringr        1.4.0     2019-02-10 [1] CRAN (R 4.0.0)
 sys            3.3       2019-08-21 [1] CRAN (R 4.0.0)
 testthat       2.3.2     2020-03-02 [1] CRAN (R 4.0.0)
 tibble         3.0.1     2020-04-20 [1] CRAN (R 4.0.0)
 tidyr          1.0.3     2020-05-07 [1] CRAN (R 4.0.0)
 tidyselect     1.1.0     2020-05-11 [1] CRAN (R 4.0.0)
 TSP            1.1-10    2020-04-17 [1] CRAN (R 4.0.0)
 tweenr         1.0.1     2018-12-14 [1] CRAN (R 4.0.0)
 utf8           1.1.4     2018-05-24 [1] CRAN (R 4.0.0)
 vctrs          0.3.0     2020-05-11 [1] CRAN (R 4.0.0)
 viridis        0.5.1     2018-03-29 [1] CRAN (R 4.0.0)
 viridisLite    0.3.0     2018-02-01 [1] CRAN (R 4.0.0)
 webshot        0.5.2     2019-11-22 [1] CRAN (R 4.0.0)
 withr          2.2.0     2020-04-20 [1] CRAN (R 4.0.0)
 xtable         1.8-4     2019-04-21 [1] CRAN (R 4.0.0)
 yaml           2.2.1     2020-02-01 [1] CRAN (R 4.0.0)
 zoo            1.8-8     2020-05-02 [1] CRAN (R 4.0.0)

[1] /Library/Frameworks/R.framework/Versions/4.0/Resources/library