title: How to avoid that xtable flips the x and y axis of a table in the final output?
body: <p>I work with xtable which turns a table of r into a functionable latex code.</p>
  <pre><code>    &lt;&lt;echo=false&gt;&gt;=
  attach(warpbreaks)
  p2 &lt;- round(tapply(breaks, list(tension), mean), digits=2) %&gt;%
    as.table(.)
  @
  </code></pre>
  <p>p2 looks like this:</p>
  <pre><code>  L     M     H 
  36.39 26.39 21.67 
  </code></pre>
  <p>But the output of the created pdf of this code:</p>
  <pre><code>&lt;&lt;echo=false, results=tex&gt;&gt;=
  library(&quot;xtable&quot;)
  xtable(p2,
         align = &quot;rr&quot;)
  @ 
  </code></pre>
  <p>looks (approximately) like this:</p>
  <pre><code>      x 
  L 36.39 
  M 26.39 
  H 21.67
  </code></pre>
  <p>Why does it not look like the inital table in r and how can I fix it?</p>