This package offers fortify and autoplot functions to allow automatic ggplot2 to visualize statistical result of popular R packages. Check out our R Journal paper for more details on the overall architecture design and a gallery of visualizations created with this package. Also check out autoplotly package that could automatically generate interactive visualizations with plotly.js style based on ggfortify. The generated visualizations can also be easily extended using ggplot2 syntax while staying interactive.
Installation
Install the latest stable release from CRAN:
install.packages('ggfortify')
Install the development version from Github:
if (!require("remotes")) install.packages("remotes")
remotes::install_github('sinhrks/ggfortify')
To cite ggfortify in publications, please use (available via citation("ggfortify")):
Yuan Tang, Masaaki Horikoshi, and Wenxuan Li (2016). ggfortify: Unified Interface to Visualize
Statistical Result of Popular R Packages. The R Journal, 8.2, 478-489.
Masaaki Horikoshi and Yuan Tang (2016). ggfortify: Data Visualization Tools for Statistical
Analysis Results. https://CRAN.R-project.org/package=ggfortify
Note: This package has been maintained by @terrytangyuan since 2015. Please consider sponsoring!
ggfortify
This package offers
fortifyandautoplotfunctions to allow automaticggplot2to visualize statistical result of popular R packages. Check out our R Journal paper for more details on the overall architecture design and a gallery of visualizations created with this package. Also check out autoplotly package that could automatically generate interactive visualizations with plotly.js style based onggfortify. The generated visualizations can also be easily extended usingggplot2syntax while staying interactive.Installation
Install the latest stable release from CRAN:
Install the development version from Github:
Examples
Reference/Citation
To cite ggfortify in publications, please use (available via
citation("ggfortify")):Coverage
This covers following classes:
base::matrixbase::table(supportsfortifyonly)cluster::claracluster::fannycluster::pamcluster::silhouettechangepoint::cptfGarch::fGARCHforecast::batsforecast::forecastforecast::etsforecast::nnetarfracdiff::fracdiffglmnet::cv.glmnetglmnet::glmnetKFAS::KFSKFAS::signal(inference)lfda::lfdalfda::klfdalfda::selfmaps::mapMASS::isoMDS(inference)MASS::sammon(inference)raster::RasterBrickraster::RasterCommonraster::RasterLayerraster::RasterStackROCR::performancesp::Linesp::Linessp::Polygonsp::Polygonssp::SpatialLinessp::SpatialLinesDataFramesp::SpatialPointssp::SpatialPointsDataFramesp::SpatialPolygonssp::SpatialPolygonsDataFramesplines::basisstats::acfstats::arstats::Arimastats::cmdscale(inference)stats::decomposed.tsstats::densitystats::factanalstats::glmstats::HoltWintersstats::kmeansstats::lmstats::prcompstats::princompstats::specstats::stepfunstats::stlstats::tssurvival::survfitsurvival::survfit.coxsurvival::survfitmsstrucchange::breakpointsstrucchange::breakpointsfulltimeSeries::timeSeriestseries::irtsvars::varprdxts::xtszoo::zooregHelper Functions
ggdistributionto plot PDF/CDFggcpgramto plotcpgramggtsdiagto plottsdiagggfreqplotto generalizemonthplot