Graphics, Figures & TablesTable too wide with command 'xtable' using Sweave

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
zhangtpku
Posts: 6
Joined: Tue Oct 25, 2011 10:18 pm

Table too wide with command 'xtable' using Sweave

Post by zhangtpku »

Code: Select all

\documentclass[11pt,a4paper]{article}
\begin{document}
<<Read>>=
library("Ecdat")
data(Schooling)

<<echo=FALSE,keep.source=TRUE,results=tex>>=
library(xtable)

print(xtable(summary(Schooling)))
\end{document}
When I use xtable to tabulate the summary of Schooling, the table is too wide to be displayed on the page. How do I solve this problem?
THX!
Last edited by localghost on Wed Oct 26, 2011 4:24 pm, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply