Using btable
btable
Enrico Schumann
mailto:es@enricoschumann.net
1 btable
btable creates a simple barplot in a LaTeX tabular. As an example, add this to a Sweave file:
\begin{tabular}{ll}
<<echo=false, results=tex>>=
x <- 1:5
cat(btable(x, before = paste(x, "&"), after= "\\\\\n"))
@
\end{tabular}
The output should be:
| 1 | |
|---|---|
| 2 | |
| 3 | |
| 4 | |
| 5 |
2 dctable
> x <- array(1:6, dim = c(3, 2))