Skip to content
Prev 246920 / 398506 Next

Basic ggplot question

Hi,

Try this,

m = melt(dat, id="Date")
head(m)

qplot(Date, value, data=m, colour=variable, geom="line")

ggplot(m) + facet_grid(variable~., scales="free_y") +
  geom_path(aes(Date, value))


HTH,

baptiste
On 10 January 2011 14:12, Santosh Srinivas <santosh.srinivas at gmail.com> wrote: