我正在使用 zoo.plot 绘制一个多重堆叠图,其中 4 个 y 轴超过 1 个 x 轴。有没有办法交替 y 轴标签和刻度线的一侧,这样它们就不会在同一侧重叠。即顶部图,y 轴在左边,下一个图在右边等等?
我的情节代码如下所示:
library(zoo)
z <- with(df, zoo(cbind(depth, angle, Y, Z),as.POSIXct(time)))
plot.zoo(z, ylab=c("Depth (m)", "Pitch Angle (degrees)", "Swaying Acceleration (m/s^2)", "Heaving Acceleration (m/s^2)"), col=c("black", "blue", "darkred", "darkgreen"),
xlab = c("Time"), lwd=2, plot.type="multiple", ylim=list((rev(range(dive195.11drift$DEPTH))), c(-90,90), c(-10,10), c(-10,10)))