{"action":"created","issue":{"url":"https://api.github.com/repos/rich-iannone/DiagrammeR/issues/116","labels_url":"https://api.github.com/repos/rich-iannone/DiagrammeR/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/rich-iannone/DiagrammeR/issues/116/comments","events_url":"https://api.github.com/repos/rich-iannone/DiagrammeR/issues/116/events","html_url":"https://github.com/rich-iannone/DiagrammeR/issues/116","id":97403934,"number":116,"title":"suggestions to plot decision tree?","user":{"login":"vnijs","id":2998956,"avatar_url":"https://avatars.githubusercontent.com/u/2998956?v=3","gravatar_id":"","url":"https://api.github.com/users/vnijs","html_url":"https://github.com/vnijs","followers_url":"https://api.github.com/users/vnijs/followers","following_url":"https://api.github.com/users/vnijs/following{/other_user}","gists_url":"https://api.github.com/users/vnijs/gists{/gist_id}","starred_url":"https://api.github.com/users/vnijs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vnijs/subscriptions","organizations_url":"https://api.github.com/users/vnijs/orgs","repos_url":"https://api.github.com/users/vnijs/repos","events_url":"https://api.github.com/users/vnijs/events{/privacy}","received_events_url":"https://api.github.com/users/vnijs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-27T07:40:50Z","updated_at":"2015-07-29T09:37:22Z","closed_at":null,"body":"I added an interface in Radiant to [data.tree](https://github.com/gluc/data.tree) for decision trees. See link below (Decide > Decision tree) for an example. Click the `Calculate` button to see the output. \r\n\r\nhttp://vnijs.rady.ucsd.edu:3838/quant/?SSUID=c4e9c5f289\r\n\r\nI played around with the plotting code @gluc provided in his presentation at UseR (see link to image below). The labels are the main issue i see (code linked below). I'm curious if you have any suggestions on which tools might work best to accommodate (longish) labels and (potentially) many terminal nodes. Being able to collapse (parts) of the tree would also be nice. I actually already like the simple text output shown in Radiant now so maybe even something like @timelyportfolio's list viewer could work.\r\n\r\nhttps://github.com/vnijs/radiant/blob/master/R/dtree.R#L113-L155\r\n\r\nLink to image:\r\nhttps://www.dropbox.com/s/ueqp3fbpv02ubax/dtree_plot.png?dl=0\r\n\r\nSee also discussion here: https://github.com/gluc/data.tree/issues/19"},"comment":{"url":"https://api.github.com/repos/rich-iannone/DiagrammeR/issues/comments/125896506","html_url":"https://github.com/rich-iannone/DiagrammeR/issues/116#issuecomment-125896506","issue_url":"https://api.github.com/repos/rich-iannone/DiagrammeR/issues/116","id":125896506,"user":{"login":"vnijs","id":2998956,"avatar_url":"https://avatars.githubusercontent.com/u/2998956?v=3","gravatar_id":"","url":"https://api.github.com/users/vnijs","html_url":"https://github.com/vnijs","followers_url":"https://api.github.com/users/vnijs/followers","following_url":"https://api.github.com/users/vnijs/following{/other_user}","gists_url":"https://api.github.com/users/vnijs/gists{/gist_id}","starred_url":"https://api.github.com/users/vnijs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vnijs/subscriptions","organizations_url":"https://api.github.com/users/vnijs/orgs","repos_url":"https://api.github.com/users/vnijs/repos","events_url":"https://api.github.com/users/vnijs/events{/privacy}","received_events_url":"https://api.github.com/users/vnijs/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T09:37:22Z","updated_at":"2015-07-29T09:37:22Z","body":"An issue (possibly) related to saving plots is getting the plot in a knitry document. When I tried knitting the package vignette with the command below there are not DiagrammeR plots show. Am I missing something?\r\n\r\nknit2html(\"~/Desktop/diagrammer.Rmd\")"}}