플롯이 충분히 넓은 지 확인해야합니다. 그렇지 않으면 휴식 시간 중 일부가 생략됩니다. 차이점을 보려면 아래 예를 참조하십시오.
예 1
png(filename = 'scatterplot1.png', width = 800, height = 400)
plot(Ahm5 ~ days, dat, col = 'blueviolet', type = "p", pch = 1, cex=.5, xlab = "Year", xaxt='n', ylab = "Rainfall (mm/Day)")
axis.Date(side = 1, at = seq(as.Date("1961/1/1"), by = "year", length.out = 47))
dev.off()
준다 :

예 2
png(filename = 'scatterplot2.png', width = 600, height = 300)
plot(Ahm5 ~ days, dat, col = 'blueviolet', type = "p", pch = 1, cex=.5, xlab = "Year", xaxt='n', ylab = "Rainfall (mm/Day)")
axis.Date(side = 1, at = seq(as.Date("1961/1/1"), by = "year", length.out = 47))
dev.off()
준다 :
예 3 :
png(filename = 'scatterplot3.png', width = 400, height = 200)
plot(Ahm5 ~ days, dat, col = 'blueviolet', type = "p", pch = 1, cex=.5, xlab = "Year", xaxt='n', ylab = "Rainfall (mm/Day)")
axis.Date(side = 1, at = seq(as.Date("1961/1/1"), by = "year", length.out = 47))
dev.off()
이 제공 :

당신은 휴식이 플롯과 R 사용 중단하는 선택 사이에 차이가 볼 수 있듯이. 더 좋은 휴식을 가지고, 당신은 사용할 수 있습니다
png(filename = 'scatterplot4.png', width = 800, height = 400)
plot(Ahm5 ~ days, dat, col = 'blueviolet', type = "p", pch = 1, cex=.5, xlab = "Year", xaxt='n', ylab = "Rainfall (mm/Day)")
axis.Date(side = 1, at = seq(as.Date("1965/8/1"), by = "5 year", length.out = 9))
dev.off()
준다 : 이제

은 당신이 :
진드기가 중간에 정렬
UPDATE : 마지막 예에있어서 동화 : 범
png(filename = 'scatterplot5.png', width = 800, height = 400)
plot(Ahm5 ~ days, dat, col = 'blueviolet', type = "p", pch = 1, cex=.5,
xlab = "Year", xaxt='n', ylab = "Rainfall (mm/Day)")
axis.Date(side = 1,
at = c(seq(as.Date("1960/8/1"), by = "10 year", length.out = 5),
as.Date('2007-08-01')))
dev.off()
:

는 [재현성 예]주십시오 (HTTP//stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example/5963610). 이렇게하면 다른 사람들이 당신을 도울 수 있습니다. – Jaap
데이터와 코드로 편집했습니다. – ajilesh