Graphs for Correspondence Analysis

Readable, complete and pretty graphs for multiple correspondence analysis, correspondence analysis and principal component analysis made with 'FactoMineR'. They can be rendered as interactive 'HTML' plots, showing useful information at mouse hover. The interest is not mainly visual but statistical. It helps the reader to keep in mind the data contained in the cross-table or Burt table while reading the correspondence analysis, thus preventing over-interpretation. Most graphs are made with 'ggplot2', which means that you can use the + syntax to manually add as many graphical pieces you want, or change theme elements. 3D graphs are made with 'plotly'.


ggfacto

CRAN status R-CMD-check

ggfacto draws readable, interactive graphs of the principal component, correspondence and multiple correspondence analyses of FactoMineR. Hover over a point, and the graph shows the crosstables behind it, each deviation from the mean coloured: the geometry is always read against the data it summarises. The graphs are ggplot objects, to be extended with +.

The three analyses share one workflow: the analysis, interpret() for its axes, ggfacto() for its graph, and hierarchical_clust() for its clusters.

install.packages("ggfacto")

library(ggfacto)
data(tea, package = "FactoMineR")
mca <- multiple_correspondence_analysis(tea, 1:18)
interpret(mca)
ggfacto(mca, tea, sup_vars = c(sex, SPC), interactive = TRUE)

See the website, with the interactive graphs: https://bricenocenti.github.io/ggfacto/, and its guide, in English or en français.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("ggfacto")

0.4.0 by Brice Nocenti, 17 days ago


https://bricenocenti.github.io/ggfacto/, https://github.com/BriceNocenti/ggfacto


Report a bug at https://github.com/BriceNocenti/ggfacto/issues


Browse source code at https://github.com/cran/ggfacto


Authors: Brice Nocenti [aut, cre] , Francois Husson [ctb, cph] (the cut rule and tree plot of hierarchical_clust() , after 'FactoMineR' HCPC()) , Guillaume Le Ray [ctb, cph] (the cut rule and tree plot of hierarchical_clust() , after 'FactoMineR' HCPC()) , Quentin Molto [ctb, cph] (the cut rule and tree plot of hierarchical_clust() , after 'FactoMineR' HCPC())


Documentation:   PDF Manual  


GPL (>= 3) license


Imports FactoMineR, ggiraph, htmltools, ggplot2, dplyr, forcats, purrr, rlang, tibble, tidyr, tidyselect, vctrs, ggrepel, fastcluster, gdtools, tabxplor, withr, magrittr, grDevices, graphics, stats, scales

Suggests GDAtools, htmlwidgets, knitr, rmarkdown, plotly, testthat


See at CRAN