I am trying to use the functions ggseasonplot, ggAcf, and autoplot to visualize the R dataset USAccDeaths, but nothing is working the way I expect. I installed and loaded the ggplot2 library, but it doesn't allow me to use any of the functions I need. Autoplot runs, but I get the error "Objects of type ts not supported by autoplot.". GGseasonplot and ggAcf aren't even options, and when I try to run them I get the error "could not find function "ggseasonplot"". Same error for ggAcf.
I tried loading ggfortify, which another post suggested might work to solve the autoplot error, but I get the error "package or namespace load failed for ‘ggfortify’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘stringr’
In addition: Warning message:
package ‘ggfortify’ was built under R version 4.0.5"
Any help at all would be highly appreciated.