Plotting Simple Data in R

后端 未结 7 1616
旧时难觅i
旧时难觅i 2021-02-01 06:28

I have a comma separated file named foo.csv containing the following data:

scale, serial, spawn, for, worker
5, 0.000178, 0.000288, 0.000292, 0.0003         


        
7条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-01 06:53

    Try this:

    data <- read.csv('foo.csv')
    plot(serial ~ scale, data)
    dev.new()
    plot(spawn ~ scale, data)
    dev.new()
    plot(for. ~ scale, data)
    dev.new()
    plot(worker ~ scale, data)
    

提交回复
热议问题