Skip to content
Prev 307186 / 398506 Next

LaTeX consistent publication graphics from R and Comparison of GLE and R

Hi Frank,

I have not used tikz, so am not sure.

I have been hand coding the TeX markup in the .Rnw files to date, since each study has been somewhat different in terms of various characteristics and the sponsors, in some cases, have requested some customizations to the flow charts. That has typically been done with psmatrix constructs (http://tug.org/PSTricks/main.cgi?file=pst-node/psmatrix/psmatrix).

I have also used PSTricks, with pst-tree constructs (http://tug.org/PSTricks/main.cgi?file=pst-tree/pst-tree), to create branching trees for stratified randomization flow charts. So you have a top level with all enrolled subjects, then branches from there showing each stratification level, each box showing the sample size (using \Sexpr{}s) within each strata level. Similar concept to the matrix-like orgchart style used for disposition charts, but just a different implementation, which allows for an imbalance in the tree structure (eg. differing strata in each arm based upon various criteria, etc.).

I suppose that if one were to think about it conceptually, R's list structures would be a suitable substrate for creating an object that could be passed to a print method of sorts and generate the TeX markup during Sweave (or knitr) processing. I just have not spent the time to consider how that would be done generically enough and still allow for some of the customizations that might be encountered.

Food for thought.

Best regards,

Marc
On Oct 6, 2012, at 8:14 AM, Frank Harrell <f.harrell at vanderbilt.edu> wrote: