Re: [R] Use R to plot a directory tree

2013-10-25 Thread Michael Friendly
On 10/24/2013 9:13 AM, Thaler,Thorn,LAUSANNE,Applied Mathematics wrote: Dear all, I was wondering whether (or better: how) I can use R to read recursively a directory to get all the sub-folders and files located in the root folder and put it into a tree like structure where the leaves are

[R] Use R to plot a directory tree

2013-10-24 Thread Thaler,Thorn,LAUSANNE,Applied Mathematics
Dear all, I was wondering whether (or better: how) I can use R to read recursively a directory to get all the sub-folders and files located in the root folder and put it into a tree like structure where the leaves are files and intermediate nodes are the directories? The idea is that I'd like

Re: [R] Use R to plot a directory tree

2013-10-24 Thread Bert Gunter
A wild guess -- take a look at the CRAN phylohenetics task view, as that sounds like the sort of thing that might have tree generation and manipulation functions. ... but you may do better with some non-R tool out there. (Hopefully, you'll get a better response, though). Cheers, Bert On Thu,

Re: [R] Use R to plot a directory tree

2013-10-24 Thread Marc Schwartz
One R package that might be of interest would be 'diagram': http://cran.r-project.org/web/packages/diagram/ I would also agree with Bert here and would point you in the direction of PSTricks, which can handle these sorts of complex figures. It would of course require learning LaTeX, but that

Re: [R] Use R to plot a directory tree

2013-10-24 Thread Jan Kim
perhaps as a somewhat tamer guess than Bert's, it's probably not very hard to write a function that pieces together a dendrogram (S3 class provided by the stats package), using the list.dirs and list.files functions. This could then be plotted via the plot function, and you could even designate