我首先绘制数据,然后添加轴。在我的Y轴上,-10没有被放置在刻度线旁边。它是唯一没有出现的。当我的标签字体设置为1.5时,它正在工作。现在设置为2时它不起作用。
plot(opYcenter$V1, opYcenter$V2, xlab = "Time (days)", ylab = "RV (m/s)", axes = FALSE, cex.lab=2, cex = .5)
pos3= c(0,2000, 4000,6000,8000,10000)
stuff3 <- c("0","2000","4000","6000","8000","10000")
axis(side = 1,
at = pos3,
labels = stuff3 ,
tck=-.025,
cex.axis =2,
lwd =2)
pos4 =c(-15,-10,-5,0,5,10,15)
stuff4 = c("-15","-10","-5", "0","5","10","15")
axis(side = 2,
at = pos2,
labels = stuff2 ,
tck=-.025,
cex.axis =2, //this part was working at 1.5
lwd =2)
如何解决此问题?谢谢!