Re: [R] xtable and sweave: caption placement problem

2011-11-18 Thread Rainer Schuermann
It works if you separate the print command and put the caption placement in the print command , see below: \documentclass[11pt,a4paper]{article} \usepackage{Sweave} \begin{document} <<>>= x = runif(100, 1, 10) y = 2 + 3 * x + rnorm(100) @ <>= library(xtable) p <- (xtable(summary(lm(

Re: [R] xtable and sweave: caption placement problem

2011-11-18 Thread Charles Roosen
Dear Renger, This is occurring because "xtable" divides up the arguments into items related to the "content" of the table and arguments related to the "layout" of the table. The "caption.placement" is an argument to "print.xtable()" rather than to "xtable()": print(xtable(summary(lm(y~x)),