title: Legends in barplot not appearing properly
body: <pre><code>heights1=c(5,5,4.5,4,4,4,4.5,2,4,4)
  
  opar &lt;- par(lwd = 0.3)
  
  barplot(heights1,xlim=c(0,3), ylim=c(0,5),  width=0.1, 
  main="Langauges(Verbal &amp; Non-verbal)", 
  names.arg=c("Spanish", "Speak" , "English","Speak", "Hindi", 
  "Speak", "Arabic", "Speak",  "Body Lang", "Speak"), ylab="Skill level ", 
  xlab="Language starting with mostly used", col=c("darkblue","red"),
  cex.names=0.7,space=c(2,0,2,0,2,0,2,0,2,0))
  
  legend("top",  c("darkblue","red"), c("reading/Writing", "Speaking")  );
  </code></pre>
  
  <p>Blue is for "reading/writing" and red is for "speaking". How do I make correction in legend? (I do not want to define legend inside barplot function)</p>
  
  <p><img src="https://i.stack.imgur.com/2SR9N.jpg" alt="enter image description here"></p>