I have a data.frame that looks like
Year Crustaceans Cod Tuna Herring Scorpion.fishes
1 1950 58578630 2716706 69690537 87161396
A simple transformation using melt
(from the reshape/2 package) would suffice. I would do
library(reshape2)
qplot(Year, value, colour = variable, data = melt(df, 'Year'), geom = 'line')
I found the following link to be extremely helpful to learning reshape. Reshape and plyr are very easy to use functions once you have the format (not necessarily the fastest (data.table package is written using some C so it's much faster) of how they work down. This tutorial pdf is a great resource for learning it. Also I suggest copying the line from example(cast) into a script and running them one at a time to see the result.
http://had.co.nz/stat405/lectures/19-tables.pdf