How to draw multiple Lines from csv in R

后端 未结 2 1394
南笙
南笙 2021-01-15 21:21

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:

         


        
2条回答
  •  旧巷少年郎
    2021-01-15 21:59

    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.

提交回复
热议问题