0
當我讓plot
繪製軸時,grid
與ticks
by default對齊。將網格與刻度對齊
然而,我的劇情有所涉及:
mytime <- as.POSIXct("2015-08-20") + seq(0,by=3600,length.out=7*24)
plot(x=mytime,y=rnorm(7*24),xaxt="n")
ticks <- mytime[seq(1,by=12,to=length(mytime))]
axis(1, ticks, strftime(ticks, "%a %H:%M"))
grid(ny=NULL,nx=14)
,我不能讓grid
與ticks
對齊:
如何使他們靠攏?