How to make scatterplots according to specific requirements of color? : <pre><code>colored = c('red','blue','yellow')
plot(iris$Petal.length,iris$Petal.Width)
</code></pre>

<p>I was trying to plot iris$Pedal.width and iris$Pedal.length, and I wanted the color to follow the species of the flowers.(there are 3 species 'setosa','versicolor','Virginia')</p>

<p>I create a color vector, and I want all the setosa to be red, all versicolor to be blue and all Virginia to be yellow. how can I use the color vector in plot(iris$Pedal.width,iris$Pedal.length) to achieve this goal?</p>
