plot dataframe with inconsistently relations
Hi @ all, I work with a dataframe like the attached one. I want to plot it, so that "value" is listed on the y-axis, "year" on the x-axis and "states" as lines in the coordinate system. I tried the following code: require(ggplot) plot1<-ggplot(TEST, aes(year, value)) + geom_line(aes(colour = state)) The result could be very nice but the the lines are stacked. Maybe there is an easier way to do that? Thanks a lot for your help. Geo -- View this message in context: http://r.789695.n4.nabble.com/plot-dataframe-with-inconsistently-relations-tp4642766.html Sent from the R help mailing list archive at Nabble.com.