Using btable

Enrico Schumann Email: mailto:es@enricoschumann.net

btable

1 btable

btable creates a simple barplot in a 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))