title: How can you show the rownames in pheatmap on the left side of the graph?
body: <p>I am making a heatmap using the <code>pheatmap</code> package in R. By default the rownames are shown on the right side of the heatmap. Does anyone know how to move them to the left side?</p>
  
  <p>Some other packages seem to have functions for this, like <code>row_names_side = "left"</code> in <code>heatmap</code>, but there does not seem to be a parameter for this in pheatmap… An example with random data</p>
  
  <pre><code># Color palette for the heatmap
  colors = c(seq(-5,-1,length=1000),seq(-.999999,.999999,length=1000),seq(1, 5,length=1000))
  my_palette &lt;- colorRampPalette(c("blue", "white", "red"))(n = 2999)
  
  data.random &lt;- data.frame(matrix(data=rnorm(150), ncol=15, nrow=10))
  rownames(data.random) &lt;- letters[1:10]
  colnames(data.random) &lt;- LETTERS[1:15]
  h &lt;- pheatmap(data.random,
          cluster_rows=FALSE,
          cluster_cols=FALSE,
          legend=TRUE,
          color=my_palette,
          breaks=colors,
          show_rownames=TRUE,
          show_colnames=TRUE
  )
  </code></pre>
  
  <p>This produces a heatmap with the row and column labels. I would like to make the same plot but with the row labels on the left instead of the right.</p>