I just started using R and like to know how to plot a line . With one of my tool I am doing regression which generating csv files. FOrmat is as follows:
yourData <- read.csv("yourCSV.csv") with(yourData, plot(X, Y, type = "l")) with(yourData, lines(X, Y1)) with(yourData, lines(X, Y2))
Also see ?abline.
?abline