[R] xtable, sweave and resizebox

Welma Pereira
2009-08-07T11:03:28Z

does anyone know to rezize a table produzed by xtable?  The size of my table
is too big and I would like to resize it like using resizebox but it gives
an erros when I try using it


using it its fine

\SweaveOpts{echo=false}
<<results=tex>>xtable(stats0,caption='Número de transacções dos
artigos frequentes e
infrequentes',label='tab:INEStats')
@

but the size is too big

so I try
<<echo=False,results=hide>>load('stats.Rdata')
library(xtable)

\resizebox{\textwidth}{!}{
\SweaveOpts{echo=false}
<<results=tex>>xtable(stats0,caption='text',label='tab:Stats')
@
}

and it doesn t work anymore

any hints?

	[[alternative HTML version deleted]]