Plotting multiple lines from a data frame in R

前端 未结 3 669
孤街浪徒
孤街浪徒 2020-12-18 04:23

I am building an R function to plot a few lines from a data table, I don\'t understand why this is not working?

data = read.table(path, header=TRUE);
plot(da         


        
3条回答
  •  -上瘾入骨i
    2020-12-18 04:53

    You don't need to load any package of for or apply, just simply use the matplot function built in R... Each column of a table will be a line in your graph (or symbols if you prefer).

提交回复
热议问题