Plot Line Curve In R