{"action":"created","issue":{"url":"https://api.github.com/repos/andrie/ggdendro/issues/26","repository_url":"https://api.github.com/repos/andrie/ggdendro","labels_url":"https://api.github.com/repos/andrie/ggdendro/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/andrie/ggdendro/issues/26/comments","events_url":"https://api.github.com/repos/andrie/ggdendro/issues/26/events","html_url":"https://github.com/andrie/ggdendro/issues/26","id":187971399,"number":26,"title":"Error when using as.ggdend() with type = \"triangle\"","user":{"login":"kassambara","id":3313355,"avatar_url":"https://avatars.githubusercontent.com/u/3313355?v=3","gravatar_id":"","url":"https://api.github.com/users/kassambara","html_url":"https://github.com/kassambara","followers_url":"https://api.github.com/users/kassambara/followers","following_url":"https://api.github.com/users/kassambara/following{/other_user}","gists_url":"https://api.github.com/users/kassambara/gists{/gist_id}","starred_url":"https://api.github.com/users/kassambara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kassambara/subscriptions","organizations_url":"https://api.github.com/users/kassambara/orgs","repos_url":"https://api.github.com/users/kassambara/repos","events_url":"https://api.github.com/users/kassambara/events{/privacy}","received_events_url":"https://api.github.com/users/kassambara/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-08T11:46:02Z","updated_at":"2016-11-08T11:47:33Z","closed_at":null,"body":"Hi Andrie,\r\n\r\nFirst of all, I would like to thank you for this impressive package.\r\n\r\nI tried to use the function as.ggdend(), but an error is generated when type = \"triangle\".\r\n\r\nPlease, find below a reproducible R code:\r\n\r\n```r\r\nlibrary(dendextend)\r\nUSArrests %>% scale %>% dist %>%\r\n hclust %>% as.dendrogram %>%\r\nas.ggdend(type = \"triangle\")\r\n```\r\n\r\nI have got the following error:\r\n\r\n**_Error in `$<-.data.frame`(`*tmp*`, \"pch\", value = c(NA, NA, NA, NA, NA,  : \r\n  replacement has 99 rows, data has 50_**\r\n\r\n<pre>\r\nSession info ----------------------------------------------------------------------------------------------------------------\r\n setting  value                       \r\n version  R version 3.2.4 (2016-03-10)\r\n system   x86_64, darwin13.4.0        \r\n ui       RStudio (0.99.491)          \r\n language (EN)                        \r\n collate  fr_FR.UTF-8                 \r\n tz       Europe/Paris                \r\n date     2016-11-08                  \r\n\r\nPackages --------------------------------------------------------------------------------------------------------------------\r\n package      * version    date       source                         \r\n assertthat     0.1        2013-12-06 CRAN (R 3.2.0)                 \r\n class          7.3-14     2015-08-30 CRAN (R 3.2.4)                 \r\n cluster        2.0.3      2015-07-21 CRAN (R 3.2.4)                 \r\n colorspace     1.2-7      2016-10-11 CRAN (R 3.2.5)                 \r\n dendextend   * 1.3.0      2016-08-27 CRAN (R 3.2.5)                 \r\n DEoptimR       1.0-6      2016-07-06 CRAN (R 3.2.5)                 \r\n dichromat      2.0-0      2013-01-24 CRAN (R 3.2.0)                 \r\n digest         0.6.10     2016-08-02 CRAN (R 3.2.5)                 \r\n diptest        0.75-7     2015-06-08 CRAN (R 3.2.0)                 \r\n flexmix        2.3-13     2015-01-17 CRAN (R 3.2.0)                 \r\n fpc            2.1-10     2015-08-14 CRAN (R 3.2.0)                 \r\n ggplot2      * 2.1.0.9001 2016-10-18 Github (hadley/ggplot2@1709196)\r\n gtable         0.2.0      2016-02-26 CRAN (R 3.2.3)                 \r\n kernlab        0.9-25     2016-10-03 CRAN (R 3.2.5)                 \r\n labeling       0.3        2014-08-23 CRAN (R 3.2.0)                 \r\n lattice        0.20-33    2015-07-14 CRAN (R 3.2.4)                 \r\n lazyeval       0.2.0      2016-06-12 CRAN (R 3.2.5)                 \r\n magrittr       1.5        2014-11-22 CRAN (R 3.2.0)                 \r\n MASS           7.3-45     2015-11-10 CRAN (R 3.2.4)                 \r\n mclust         5.2        2016-03-31 CRAN (R 3.2.4)                 \r\n modeltools     0.2-21     2013-09-02 CRAN (R 3.2.0)                 \r\n munsell        0.4.3      2016-02-13 CRAN (R 3.2.3)                 \r\n mvtnorm        1.0-5      2016-02-02 CRAN (R 3.2.3)                 \r\n nnet           7.3-12     2016-02-02 CRAN (R 3.2.4)                 \r\n plyr           1.8.4      2016-06-08 CRAN (R 3.2.5)                 \r\n prabclus       2.2-6      2015-01-14 CRAN (R 3.2.0)                 \r\n RColorBrewer   1.1-2      2014-12-07 CRAN (R 3.2.0)                 \r\n Rcpp           0.12.7     2016-09-05 CRAN (R 3.2.5)                 \r\n reshape2       1.4.2      2016-10-22 CRAN (R 3.2.5)                 \r\n robustbase     0.92-6     2016-05-31 CRAN (R 3.2.5)                 \r\n scales         0.4.0.9003 2016-10-18 Github (hadley/scales@d58d83a) \r\n stringi        1.1.2      2016-10-01 CRAN (R 3.2.5)                 \r\n stringr        1.1.0      2016-08-19 CRAN (R 3.2.5)                 \r\n tibble         1.2        2016-08-26 CRAN (R 3.2.5)                 \r\n trimcluster    0.1-2      2012-10-29 CRAN (R 3.2.0)                 \r\n whisker        0.3-2      2013-04-28 CRAN (R 3.2.0)        \r\n</pre>\r\n\r\n\r\nBest regards,\r\nA.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/andrie/ggdendro/issues/comments/259116526","html_url":"https://github.com/andrie/ggdendro/issues/26#issuecomment-259116526","issue_url":"https://api.github.com/repos/andrie/ggdendro/issues/26","id":259116526,"user":{"login":"talgalili","id":976006,"avatar_url":"https://avatars.githubusercontent.com/u/976006?v=3","gravatar_id":"","url":"https://api.github.com/users/talgalili","html_url":"https://github.com/talgalili","followers_url":"https://api.github.com/users/talgalili/followers","following_url":"https://api.github.com/users/talgalili/following{/other_user}","gists_url":"https://api.github.com/users/talgalili/gists{/gist_id}","starred_url":"https://api.github.com/users/talgalili/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talgalili/subscriptions","organizations_url":"https://api.github.com/users/talgalili/orgs","repos_url":"https://api.github.com/users/talgalili/repos","events_url":"https://api.github.com/users/talgalili/events{/privacy}","received_events_url":"https://api.github.com/users/talgalili/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T11:47:33Z","updated_at":"2016-11-08T11:47:33Z","body":"Hi @kassambara \r\nas.ggdend is from the dendextend R package. Please report your issue there:\r\nhttps://github.com/talgalili/dendextend/issues\r\n"}}
{"actor":{"display_login":"talgalili"}}