ggbiplot: A Grammar of Graphics Implementation of Biplots

A 'ggplot2' based implementation of biplots, giving a representation of a dataset in a two dimensional space accounting for the greatest variance, together with variable vectors showing how the data variables relate to this space. It provides a replacement for stats::biplot(), but with many enhancements to control the analysis and graphical display. It implements biplot and scree plot methods which can be used with the results of prcomp(), princomp(), FactoMineR::PCA(), ade4::dudi.pca() or MASS::lda() and can be customized using 'ggplot2' techniques.

Getting started

Package details

AuthorVincent Q. Vu [aut] (ORCID: <https://orcid.org/0000-0002-4689-0497>), Michael Friendly [aut, cre] (ORCID: <https://orcid.org/0000-0002-3237-0941>), Aghasi Tavadyan [ctb]
MaintainerMichael Friendly <friendly@yorku.ca>
LicenseGPL-2
Version0.6.5
URL https://github.com/friendly/ggbiplot  https://friendly.github.io/ggbiplot/ 
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("ggbiplot")

Try the ggbiplot package in your browser

Any scripts or data that you put into this service are public.

ggbiplot documentation built on Sept. 7, 2026, 9:06 a.m.