用不同水平的y轴挤压间隙r基本图

问题描述 投票:0回答:1

我想通过使用不同级别的 y 轴标签来挤压(缩小间隙)基本 r 图中黄线和图形其余部分之间的距离。我怎样才能做到这一点?

enter image description here

我的代码如下:

Site <- subset(data, Sites == "Bx")

plot(SiteB$value,xlim = c(1,18),ylim=c(4,99.5),xlab="",ylab="",lwd=2,type = "n", asp = NA)
lines(SiteB$value,SiteB$A,type="l", col="orange",lwd=2)
lines(SiteB$value,SiteB$D, type="l", col="purple",lwd=2)
lines(SiteB$value,SiteB$G,type="l", col="blue",lwd=2)
lines(SiteB$value,SiteB$L,type="l",col="red",lwd=2)
lines(SiteB$value,SiteB$M,type="l", col="black",lwd=2)
#lines(SiteB$value,SiteB$S, type="l", col="magenta",lwd=2)
lines(SiteB$value,SiteB$T,type="l",col="green",lwd=2)
r
1个回答
0
投票

我认为你正在寻找的是gap.plot()

© www.soinside.com 2019 - 2024. All rights reserved.