The best, though not only, way to do this is to reshape your data
frame into 'long' format first:
d <- read.csv("pdp.csv")
library(reshape2)
dmelted <- melt(d, id.vars=1)
This produces a data frame with columns Period, variable, and value. Then simply
library(ggplot2)
ggplot(dmelted,aes(Period,value,color=variable))+geom_line()
Ben
> --
> --
> You received this message because you are subscribed to the ggplot2 mailing
> list.
> Please provide a reproducible example:
>
https://github.com/hadley/devtools/wiki/Reproducibility
>
> To post: email
ggp...@googlegroups.com
> To unsubscribe: email
ggplot2+u...@googlegroups.com
> More options:
http://groups.google.com/group/ggplot2
>
> ---
> You received this message because you are subscribed to the Google Groups
> "ggplot2" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
ggplot2+u...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.