Skip to content
Back to formatted view

Raw Message

Message-ID: <1347369733297-4642766.post@n4.nabble.com>
Date: 2012-09-11T13:22:13Z
From: Geophagus
Subject: 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.