[R] Adding a table to a plot area

Frank E Harrell Jr f.harrell at vanderbilt.edu
Mon Sep 24 22:33:33 CEST 2007


Adrian Dusa wrote:
> Frank E Harrell Jr <f.harrell <at> vanderbilt.edu> writes:
>> Judith Flores wrote:
>>> Is there a command to insert a table into the plot
>>> area other that using text?
>>>
>>> Thank you.
>> To me the only completely satisfying approach is to use LaTeX and psfrag 
>> in you want great alignment and other features.  A howto with R is at 
>> http://biostat.mc.vanderbilt.edu/PsFrag .  This uses the fragmaster perl 
>> script which runs LaTeX from within R to make the final graphics file 
>> self-contained.
> 
> The howto is interesting and extremely useful (thank you), however there is one
> line that couldn't be completed:
> 
> tab <- latexTabular(x, align='rl')  # new function in Hmisc
> 
> Which version of Hmisc has (will have) this new function?
> It cannot be found in the latest version (3.4-2) from CRAN...
> 
> Best wishes,
> Adrian

It will be in the next release of Hmisc.  It can be obtained now at 
http://biostat.mc.vanderbilt.edu/cgi-bin/viewvc.cgi/*checkout*/Hmisc/trunk/R/latex.s?rev=542

Frank

> 
> ______________________________________________
> 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.
> 


-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University



More information about the R-help mailing list