R - Plot multiple columns as years on x-axis, plot rows as different lines

前端 未结 1 486
终归单人心
终归单人心 2021-01-24 01:07

Here\'s my data frame:

            2010    2011   2012   2013   2014   2015
 A             0     100    164     75    154    110
 B            71      77    136          


        
相关标签:
1条回答
  • 2021-01-24 01:38

    There is a function for this, matplot. Try

    matplot(yourData, type="l")
    
    0 讨论(0)
提交回复
热议问题