[R] Formatting cgroup and factor level labels in Hmisc latex function

Dieter Menne dieter.menne at menne-biomed.de
Tue Jan 26 20:05:03 CET 2010



stefan.petersson wrote:
> 
> 
> I'm trying to typeset at simple crosstable with the Hmisc latex function.
> And I have two problems.
> 
> 1. How do I make all columns the same width? The Latex function seems very
> unwilling to break the 'cgroup' labels and the factor level labels. Please
> have look at this screenshot that shows my problem:
> 
> 

Snippets for custom width
\newcolumntype{R}[1]{>{\raggedright\hspace{0pt}\arraybackslash}p{#1}}

<<databasefields,results=tex>>=
col.just = c("l","l","R{9cm}") # You can use past to construct the width be
code
latex(... col.just=col.just,


Dieter



-- 
View this message in context: http://n4.nabble.com/Formatting-cgroup-and-factor-level-labels-in-Hmisc-latex-function-tp1290232p1310708.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list