[R] plot dataframe with inconsistently relations
Geophagus
fh at retposto.net
Tue Sep 11 15:22:13 CEST 2012
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.
More information about the R-help
mailing list