# [R] Centering R output in Sweave/LaTeX

Jean-Louis Abitbol abitbol at sent.com
Wed May 13 18:35:00 CEST 2009

Good Day to All,

When sweaving the following:

\begin{table}
\centering
<<echo=FALSE>>=
ftable(ifmtm$type, ifmtm$gender, ifmtm$marche , ifmtm$nfic,
dnn=c("Type","Gender","Ambulant","Visit"))
@
\caption{Four-way cross-tabulation on all data}
\label{tab:crosstab}
\end{table}

the output of ftable is not centered while the latex caption is.

Is there a way to center the R output in this setting ?

Thanks for any help and best wishes, JL