考虑以下情节:
par(xaxs='i',yaxs='i')
q = c(1000000,1051548,1073218,1087563,1097765,1109949,1113169,1124302,1134923,1137264,1132633,1235922,1351977,1474207,1602776,1746385,1905937,2077873,2276724,2487994,2718546,2939262,3209654,3543057,3858329,4243562,4301907,4332465,4392545,4412729,4429758)
x <- seq(0,30, by = 1)
plot(x, q, type = "l", bty = "L", ylim = c(0, max(q2)), xlim = c(0,30), xaxt = 'n', yaxt = 'n', xlab = "", ylab = "")
points(20, q[20])
我正在q
用坐标绘制线和点(20,q[20])
。奇怪的是,该点并没有被绘制在线上,而它实际上属于该线..
我不确定我在这里做错了什么。我已经尝试解决这个问题一个多小时了!!
谢谢!