title: R: Change font size in plot_ly
body: <p>I've been trying to change the size of the labels on my <em>x</em> and <em>y</em> axes of a graph drawn using <em>plot_ly</em> in R.</p>
  
  <p>Below is my code:</p>
  
  <pre><code>q &lt;- plot_ly(
      x=colnames(avg_exp_norm),
      y=row.names(avg_exp_norm),
      z = avg_exp_norm, type = "heatmap") %&gt;% 
      layout(xaxis = list(size = 15), yaxis = list(size = 5))
  q
  </code></pre>
  
  <p>But it doesn't work and in the result I don't see any changes in font size.</p>
  
  <p>What I'm doing wrong and how can I fix it?</p>