What is the difference between these two functions
plot(AP,xlab="Date", ylab = "Passenger numbers (1000's)",main="Air Passenger numbers from 1949 to 1961")
autoplot(AP) + labs(x ="Date", y = "Passenger numbers (1000's)", title="Air Passengers from 1949 to 1961")
From the point of view of graphical data representation there is not much difference between
graphics::plot
andggplot2::autoplot
+ggfortify
package for time-series plotting. The difference will be obvious if you will start to plot more complex plot (facetting, multiplot, grouping etc.). As for your question please see below:graphics::plot:
ggplot2::autoplot: