[R] plotting multiple lines on single graph ggplot2

Abdul Wahid Memon engrwahidmemon at gmail.com
Mon Nov 28 15:35:34 CET 2011


Hello everyone

I have some data of the following type.

100 200 300 400 500
1.1 1.2 1.3 1.4 1.5
600 700 800 900 1000
1.5 1.7 1.9 2.0 2.4

With plot() and points functions I can plot these 4 lines of data. But
I dont know how to do it with qplot or ggplot functions. The scenario
is something like this: the hundreds should appear on x-axis and the
fractional values of y axis.

Thanks alot.

MEMON Abdul Wahid



More information about the R-help mailing list