I want to draw vertical line graph (like the first graph on this page):

The deal is I have about ~15k data points whose frequencies (along Y axis) I want to present. I also want to be able to to present the frequencies in different colors : for example for the 1st 5k points, I want yellow colored line graphs for the next 5k I want red etc.
How can I do this in R? Pointers to packages (and to helpful source code where possible) will be very useful. Beginner in R here.
Thank you.

