How to rotate a table left margin name with knitr and xtable?
问题 I'm trying to get the results of the table command nicely printed on a pdf by using knitr and xtable. As a toy example let's say I want to get the table created with table(c(2,5,5,5,5,7,7,7,7,NA),c(1,5,2,2,2,2,7,7,NA,NA)) I would like to get something like this: As you can see var1 is rotated 90 degrees counterclockwise. How can I get it? Similar results, with less or more lines are OK too. I've being trying different methods I've found. I've created this Rnw file, \documentclass{article}