The latex float
package provides the float specifier H
, which allows you to force tables and figures to be precisely in the location they occur in the latex code. For example:
\usepackage{float} ...<<echo=FALSE, results=tex>>=print(xtable(x),table.placement="H")@