[R] Hmisc summary.formula formats for binary and continuous variables

2011-03-27 Thread Kwok, Heemun
Hello, I am using Hmisc summary.formula, latex and Sweave to produce tables for publication. Is it possible to change the formats for binary and continuous variables? I would prefer to show 35 (10%) and 1.5 (1.2-1.8) rather than 10% (35) and 1.2 / 1.5 / 1.8. Here is a simple example: sex <-

[R] embed latex beamer sans serif default font into R plot

2011-03-03 Thread Kwok, Heemun
Hello, I have seen instructions on how to embed Latex Computer Modern fonts into R, but these are the default serif fonts. I am trying to embed the default font used for Latex beamer (theme Warsaw), which is a sans serif font and may be the default LateX Computer Modern sans serif font.Does