title: Y axis to percent using barplot
body: <p>Gretings</p>
  
  <p>I need to change my barplot that the y axis shows in percent. This is my code:</p>
  
  <pre><code>grafico=barplot(as.matrix(w),las=2,beside=T, horiz=F,,ces.names=1.5,col=c("lightblue","lightgrey","darkgrey"),cex.axis=1, cex.names=0.78, main = "Figura 2. Vivienda")
  legend(20,20, row.names(w), col=c("lightblue","lightgrey","darkgrey"),cex = 0.75,lwd=5)
  </code></pre>
  
  <p>This is what I have right now:</p>
  
  <p><img src="https://i.stack.imgur.com/Vz5mC.png" alt="barplot"></p>
  
  <p>Thanks!</p>