Define fortify
and autoplot
functions to allow ggplot2
to handle some popular R packages.
NOTE For functions which returns list
, ggfortify
tries to infer a background class using its attribute names. Such functions are marked as "(inference)".
This covers following classes:
base::matrix
base::table
(supportsfortify
only)cluster::clara
cluster::fanny
cluster::pam
changepoint::cpt
dlm::dlmFilter
dlm::dlmSmooth
(inference)fGarch::fGARCH
forecast::bats
forecast::forecast
forecast::ets
forecast::nnetar
fracdiff::fracdiff
glmnet::cv.glmnet
glmnet::glmnet
KFAS::KFS
KFAS::signal
(inference)lfda::lfda
lfda::klfda
lfda::self
MASS::isoMDS
(inference)MASS::sammon
(inference)stats::acf
stats::ar
stats::Arima
stats::cmdscale
(inference)stats::decomposed.ts
stats::density
stats::factanal
stats::glm
stats::HoltWinters
stats::kmeans
stats::lm
stats::prcomp
stats::princomp
stats::spec
stats::stepfun
stats::stl
stats::ts
survival::survfit
survival::survfit.cox
strucchange::breakpoints
strucchange::breakpointsfull
timeSeries::timeSeries
tseries::irts
vars::varprd
xts::xts
zoo::zooreg
Install the latest stable release from CRAN:
install.packages('ggfortify')
Install the development version from Github:
library(devtools) install_github('sinhrks/ggfortify')
ggdistribution
to plot PDF/CDFggcpgram
to plotcpgram
gglagplot
to plotlag.plot
ggtsdiag
to plottsdiag
ggfreqplot
to generalizemonthplot
- Concepts and Basics of ggfortify
- Plotting Diagnostics for LM and GLM with ggplot2 and ggfortify
- Plotting Time Series with ggplot2 and ggfortify
- Plotting Time Series Statistics with ggplot2 and ggfortify
- Plotting State Space Time Series with ggplot2 and ggfortify
- Plotting PCA/clustering results using ggplot2 and ggfortify
- Plotting Multidimensional Scaling using ggplot2 and ggfortify
- Plotting Survival Curves using ggplot2 and ggfortify
- Plotting Probability Distributions with ggplot2 and ggfortify
There are some useful plotting packages using ggplot2. ggfortify
will not focus on area already covered by these packages.