R基线图 - 无法将每个点连接到一条线

时间:2016-02-09 17:26:42

标签: r plot base line-plot

使用'plot {base}'

绘制线图时遇到问题

我的数据框看起来像:

month.count.success

   month     result     n  percent

1    Jan Successful    93 17.71429

3    Feb Successful   934 13.84319

5    Mar Successful  3701 14.25325

7    Apr Successful  7613 15.33550

9    May Successful 14685 14.65247

11   Jun Successful 18967 14.69365

13   Jul Successful 26700 16.73656

15   Aug Successful 25006 15.07684

17   Sep Successful 23351 16.02391

19   Oct Successful 19996 14.11419

21   Nov Successful 19139 13.71018

23   Dec Successful 16669 12.76819

我想用:

绘制一个情节
plot(month.count.success$month, month.count.success$percent, type = 'o') 

但是情节对我不起作用,而不是将每个点连接到一条线上, 它看起来像:

enter image description here

您能否告诉我如何绘制将每月成功百分比连接成一条线的情节? 提前谢谢你解决这个问题!

0 个答案:

没有答案