R中gap.barplot中的负值

时间:2018-09-17 19:09:43

标签: r plotrix

我对使用plotrix“ gap.barplot”函数制作断轴图感兴趣。但是,我无法添加负值。

简单的示例:

gap.barplot(y = c(-2,-1,0,1,2,10), gap = c(3,8), ylim = c(-3,5))

如您在下面看到的那样,该轴不会延伸到0以下。如何解决这个问题,以便在图表中允许出现正值和负值?

enter image description here

0 个答案:

没有答案