Я видел, что проблема была решена.Я покажу вам мой пример, который работает.
#Plot
plot(x=OneMin_DataSet$AAPL_Close,type = "l",las="1", xaxt = 'n',main="Closing Prices",xlab = "", ylab = "Closing price(USD)",col="blue")
#Gridlines
for(i in c(505,510,515,520)) {
lines(c(0,1950),c(i,i),type="l",lty=2,lwd=0.5, col="black")
rm(i)
}
#Axis1
at <- seq(from = 0, to = 1950, by = 130)
axis(1,line=0,at=at,labels=c("9:30","11:40","13:50","9:30","11:40","13:50","9:30","11:40","13:50","9:30","11:40","13:50","9:30","11:40","13:50","16:00"),mgp = c(3, 0.5, 0))
mtext("Time",1,line=0.5,at=-90)
#Axis2
at2<- seq(from = 0, to = 1950, by = 390)
axis(1,line=2.5,at=at2,tick=TRUE,labels=FALSE,tck=0.1)
at3<- seq(from = 0, to = 1940, by = 390)
axis(1,line=1.5,at=at3+200,labels=c("Feb,3","Feb,4","Feb,5","Feb,6","Feb,7"),tick=FALSE,mgp = c(3, 0, 0))
mtext("Date",1,line=1.5,at=-90)