R中的问题x轴barplot + lines()

时间:2018-08-21 15:05:20

标签: r plot

我有两个长度相同的系列

执行此代码时,我有正确的输出

 plot(ID_datas$Data1 , type = 'l')
      lines(ID_datas$Data2, col = 'blue')

enter image description here

但是当我尝试使用barplot

 barplot(ID_datas$DollarTraded )
      lines(ID_datas$DollarDOM, col = 'blue')

在我的图表上,蓝色序列在x轴终点之前停止

enter image description here

有人知道为什么,我该如何纠正?谢谢

0 个答案:

没有答案