title: R: scaling , legends and the axis with barplots
body: <p>I'm having problems with my legend, scaling my text and naming individual axis</p>
  
  <p>Code:</p>
  
  <pre><code>youtube_1 &lt;- c(1)
  youtube_2 &lt;- c(2)
  youtube &lt;- rbind( youtube_1 , youtube_2)
  
  facebook_1 &lt;- c(6)
  facebook_2 &lt;- c(3)
  facebook &lt;- rbind( facebook_1 , facebook_2)
  
  twitter_1 &lt;- c(3)
  twitter_2 &lt;- c(1)
  
  twitter &lt;- rbind(twitter_1 , twitter_2)
  
  
  groups &lt;- rbind(youtube , space , facebook , space , twitter , space)
  
  
  barplot(
    groups , 
    main="Rating" ,
    ylab="Number of votes over time (people under 50 vs, people over 50)" ,
    xlab="Year 1 , Year 2 , Year 3 " ,
    col=c("yellow" , "green" ) ,
    beside=TRUE ,
    ylim= range(0 , 10) ,
   legend("topright" , legend=c("Young" , "Old") , col=c("yellow" , "green")) ,
    )                
  </code></pre>
  
  <p>When I let R do it's thing, it give me:</p>
  
  <ol>
  <li>a graph is hidden behind my legend :(</li>
  <li>the y-axis's scale is too large compared to the graph </li>
  <li>individual bars are not labeled</li>
  <li><p>I also get this ugly error:</p>
  
  <p>Error in width/2 : non-numeric argument to binary operator
  In addition: Warning message:
  In mean.default(width) : argument is not numeric or logical: returning NA</p></li>
  </ol>
  
  <p>I want:</p>
  
  <ol>
  <li>The legend to move away from the graph "area"</li>
  <li>scale the text of the axis</li>
  <li>label each individual bar</li>
  <li>label an individual point on the y-axis (e.g. 5) and ideally draw a line through that point </li>
  </ol>
  
  <p>I'm also new to R, so go slowly and for dummies please :)</p>