[R] How to make flowchart in R?

Robert Baer rbaer at atsu.edu
Mon Aug 16 21:43:47 CEST 2010


The R Journal article by Paul Murrell may be of interest:
    http://journal.r-project.org/2009-1/RJournal_2009-1_Murrell.pdf
The documentation for the Diagram Package may also be of interest:
    http://cran.r-project.org/web/packages/diagram/diagram.pdf
    http://cran.r-project.org/web/packages/diagram/vignettes/diagram.pdf



----- Original Message ----- 
From: "johannes rara" <johannesraja at gmail.com>
To: "Marc Schwartz" <marc_schwartz at me.com>
Cc: <r-help at r-project.org>
Sent: Monday, August 16, 2010 2:26 PM
Subject: Re: [R] How to make flowchart in R?


Thanks! My LaTeX knowledge is quite limited, I don't even know which
one of these

http://www.ucc.ie/cgi-bin/uncgi/ctan?term=PSTricks

I should install to get PSTricks working. I have used TeXShop once or
twice on my Mac. So, I maybe prefer plain R solution.

-J

2010/8/16 Marc Schwartz <marc_schwartz at me.com>:
>
> On Aug 16, 2010, at 12:59 PM, johannes rara wrote:
>
>> I have a large dataset and I would like to make some kind of flowchart
>> from this dataset. The idea is to show rowcounts from data subsets:
>>
>> data1
>> rows= 100000
>> |
>> / \
>> / \
>> males females,
>> rows=500000 rows=500000
>> /\
>> / \
>> / \
>> brown hair white hair
>> rows=25000 rows=25000
>>
>> Any ideas how this can be done using R?
>
>
> One approach is using Sweave along with PSTricks, specifically the 
> pst-tree package.
>
> More information and examples here:
>
> http://tug.org/PSTricks/main.cgi?file=pst-tree/pst-tree
>
> The Indian TUG also has a pretty decent tutorial series on using PSTricks 
> here:
>
> http://sarovar.org/projects/pstricks/
>
> with Chapter 11 focusing on creating trees:
>
> http://sarovar.org/frs/download.php/1188/chap11.pdf
>
>
> I use pst-tree (and pst-node) to create subject disposition flow charts 
> and stratification trees for clinical studies. I create the framework for 
> the TeX graphic and then use \Sexpr{}'s to fill in the counts, 
> percentages, other annotation, etc. as required from the data.
>
>
> HTH,
>
> Marc Schwartz
>
>

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list