Hello,

this is probably a recurrent question, but I couldn't find any answers that
didn't involve the expression "data frame"... so perhaps I'm looking for
something new here.

I wanted to find a code equivalent to

> x=sqrt(1:10)
> y=log(1:10)
> plot(1:10, x, type="lines", col="darkgreen")
> lines(1:10, y, col="red")

to use with ggplot2. I've tried

> x=sqrt(1:10)
> y=log(1:10)
> qplot(1:10, x, geom="line", colour=I("darkgreen"))
> geom_line(1:10, y, colour="red")
Error: ggplot2 doesn't know how to deal with data of class numeric

but it seems that the "data frame restriction" is really very restrictive
here. Any solutions that don't imply using as.data.frame to my data?

Thanks in advance, and best regards!

Eduardo Horta

	[[alternative HTML version deleted]]

