A comprehensive time series diagnostic (2)
To allow a quick and efficient diagnostic, it is often more convenient to display the four charts above on the same graphical window.
In this exercise, you will put all the charts you created from the previous exercise onto one graphical window.
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Visualizing Time Series Data in R
คำแนะนำการฝึกหัด
- Set up the graphical window with 2 rows and 2 columns
- Recreate the plots from the previous exercise (this has been done for you)
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# Set up 2x2 graphical window
# Recreate all four plots
hist(rtn, probability = TRUE)
lines(density(rtn), col = "red")
boxplot(rtn)
acf(rtn)
qqnorm(rtn)
qqline(rtn, col = "red")