Re: [R] Plotting Multiple lines on one plot

2008-07-23 Thread hadley wickham
The easiest way to do with this ggplot2 is to melt your data first: dfm <- melt(df, id = "date", measure = c("theta","vega","delta")) qplot(date, value, data=dfm, geom="line", colour = variable) Hadley On Tue, Jul 22, 2008 at 6:05 PM, R_Learner <[EMAIL PROTECTED]> wrote: > > Hi, > I'm trying to

Re: [R] Plotting Multiple lines on one plot

2008-07-22 Thread RichardP
You can set the range for each axis on your plot using the ylim and xlim parameters (use help to see how to implement them). You can find the range or minimum and maximum for each variable (or a number of variables at once) using the min and max commands. If you're ranges vary too much though i

[R] Plotting Multiple lines on one plot

2008-07-22 Thread R_Learner
Hi, I'm trying to plot multiple lines on one plot. I have a data frame raw, and i want to plot raw$date on the x-axis and raw$theta, raw$vega, raw$delta, and a few others on the y-axis, with a legend. However, I'm not sure what the scale of those data sets are, and I don't know which one will ha