Re: [R] Plotting Multiple lines on one plot

From: RichardP <>
Date: Tue, 22 Jul 2008 17:16:10 -0700 (PDT)

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 it will be hard to visualise all the data on the same axis.

R_Learner wrote:
> 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 have the largest scale. How can I plot this? I've tried ggplot
> (qplot), but it doesn't seem to be capable of multiple lines.
> Thanks!

View this message in context:
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 23 Jul 2008 - 04:30:29 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 23 Jul 2008 - 04:32:34 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive