Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个平均值LR50<-(424.8, 425.7)。我想将这些绘制为 barplot barplot(LR50)。现在,我不需要任何信息,除了来自ylim=c(424,426.5). 当我更改 x 轴axis(1,at=c(0,10), pos=424)时,仍然有条形图位于轴下方。
LR50<-(424.8, 425.7)
barplot(LR50)
ylim=c(424,426.5)
axis(1,at=c(0,10), pos=424)
如何让条形图仅从 y=424 及以上的新 x 轴绘制?
您将需要使用该xpd参数(并将其设置为 FALSE),这会将绘图剪切到绘图区域。
xpd
barplot(LR50,ylim = c(424,426.5),xpd=FALSE) axis(1,at=c(0,10),pos=424)