title: Color palette not balanced in R
body: <p>I am trying following code for a color palette. However, it shows more green than other colors. Why is this and how can this be corrected? Thanks for your help.</p>
  
  <pre><code>mypal = colorRampPalette(c("blue", "green", "yellow", "red"))
  pie(rep(1,100),col=mypal(100))
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/bBNUM.png" alt="enter image description here"></p>