[R] RE xtable, sweave and resizebox

Teysseyre denis.teysseyre at wanadoo.fr
Fri Aug 7 20:12:59 CEST 2009


Hello

In doc of xtable.pdf at page 7 :

.../...
## Demonstration of longtable support.
## Remember to insert \usepackage{longtable} on your LaTeX preamble
x <- matrix(rnorm(1000), ncol = 10)
x.big <- xtable(x,label='tabbig',caption='Example of longtable spanning 
several pages')
print(x.big,tabular.environment='longtable',floating=FALSE)
x <- x[1:30,]
x.small <- xtable(x,label='tabsmall',caption='regular table env')
print(x.small) # default, no longtable

## Demonstration of sidewaystable support.
## Remember to insert \usepackage{rotating} on your LaTeX preamble
print(x.small,floating.environment='sidewaystable')
if(require(stats,quietly=TRUE)) {

.../...
HTH
Denis Teysseyre




More information about the R-help mailing list