I m new to stackoverflow, so please forgive if I m not clear enough. I have 2 groups of points each of which represent a different curve:
{(100,6.5),(200,6.2),(300,5.7),(400,5.5),(500,4.8)} ,
{(100,7),(200,6),(300,5.5),(400,5.3),(500,4.5)}
I want to draw these 2 curves in R in the same plot. I want the first curve to cross the first groups of points and the second curve to cross the second group of points. Does anybody have any idea?
If you were to use
ggplot2
, you'd construct your data frame like below, adding a variable that indicates the curve for each set of points, which we'll use to color the different lines. This is a simple example, as there is a lot of customization you can do withggplot2