Learn R Programming

GGally: Extension to ggplot2

ggplot2 is a plotting system for R based on the grammar of graphics. GGally extends ggplot2 by adding several functions to reduce the complexity of combining geoms with transformed data. Some of these functions include a pairwise plot matrix, a scatterplot plot matrix, a parallel coordinates plot, a survival plot, and several functions to plot networks.

Installation

To install this package from GitHub or CRAN, do the following from the R console:

# Github
pak::pak("ggobi/ggally")
# CRAN
install.packages("GGally")

Copy Link

Version

Install

install.packages('GGally')

Monthly Downloads

71,810

Version

2.3.0

License

GPL (>= 2.0)

Issues

Pull Requests

Stars

Forks

Maintainer

Barret Schloerke

Last Published

July 18th, 2025

Functions in GGally (2.3.0)

flea

Historical data used for classification examples.
fn_switch

Function switch
getPlot

Subset a ggmatrix object
ggally_blank

Blank plot
find_plot_type

Find plot types
get_x_axis_labels

Get x axis labels
ggally_densityDiag

Univariate density plot
ggally_cor_v1_5

Correlation value plot
ggally_density

Bivariate density plot
ggally_crosstable

Display a cross-tabulated table
ggally_cross

Plots the number of observations
ggally_nostic_cooksd

ggnostic Cook's distance
ggally_na

NA plot
ggally_count

Display counts of observations
ggally_facetdensity

Faceted density plot
ggally_facetbar

Faceted bar plot
ggally_diagAxis

Internal axis labels for ggpairs
ggally_dot_and_box

Box and dot plot
ggally_dot

Grouped dot plot
ggally_denstrip

Tile plot with facets
ggally_nostic_hat

ggnostic leverage points
ggally_nostic_line

ggnostic background line with geom
ggally_nostic_resid

ggnostic residuals
ggally_points

Scatter plot
ggally_facethist

Faceted histogram
ggally_statistic

Generalized text display
ggally_cor

Correlation value plot
ggally_smooth

Scatter plot with a smoothed line
ggally_facetdensitystrip

Density or tiles plot with facets
ggally_colbar

Column and row bar plots
ggally_nostic_sigma

ggnostic leave one out model sigma
ggally_nostic_se_fit

ggnostic fitted value's standard error
ggally_nostic_std_resid

ggnostic standardized residuals
ggally_table

Display a table of the number of observations
ggally_ratio

Mosaic plot
ggally_summarise_by

Summarize a continuous variable by each value of a discrete variable
ggfacet

ggcorr

Correlation matrix
ggally_text

Text plot
ggmatrix

ggplot2 plot matrix
ggally_trends

Trends line plot
ggbivariate

Display an outcome using several potential explanatory variables
ggcoef

Model coefficients with broom and ggplot2
ggmatrix_gtable

ggmatrix gtable object
gglegend

Plot only legend of plot function
ggduo

ggplot2 generalized pairs plot for two columns sets of data
ggpairs

ggplot2 generalized pairs plot
ggnetworkmap

Network plot map overlay
ggparcoord

Parallel coordinate plot
ggmatrix_location

ggmatrix plot locations
ggscatmat

Traditional scatterplot matrix for purely quantitative variables
ggnet2

Network plot
ggsurv

Survival curves
ggnet

Network plot
is_date

Check if object is a date
is_blank_plot

Is Blank Plot? Find out if the plot equals a blank plot
grab_legend

Grab the legend and print it as a plot
ggnostic

Plot matrix of statistical model diagnostics
ggtable

Cross-tabulated tables of discrete variables
ggmatrix_progress

ggmatrix default progress bar
mapping_color_to_fill

Aesthetic mapping color fill
ggts

Multiple time series
happy

Data related to happiness from the General Social Survey, 1972-2006.
lowertriangle

lowertriangle - rearrange dataset as the preparation of ggscatmat function
glyphs

Create glyphplot data
is_horizontal

Check if plot is horizontal
is_ggmatrix

Check if an object is a ggmatrix
model_response_variables

Model term names
glyphplot

Glyph plot class
pigs

United Kingdom Pig Production
%>%

Pipe operator
plot_types

Plot Types
nasa

Data from the Data Expo JSM 2006.
print.ggmatrix

Print ggmatrix object
vig_ggally

View GGally vignettes
skewness

Sample skewness
remove_color_unless_equal

Remove colour mapping unless found in select mapping keys
tips

Tipping data
plotting_data_type

Get plotting data type
reexports

Objects exported from other packages
putPlot

Insert a plot into a ggmatrix object
psychademic

UCLA canonical correlation analysis data
print_if_interactive

Print if not CRAN
scag_order

Find order of variables
str.ggmatrix

ggmatrix structure
rescale01

Rescaling functions
twitter_spambots

Twitter spambots
wrap_fn_with_param_arg

Wrap a function with different parameter values
uppertriangle

Rearrange dataset as the preparation of ggscatmat function
mapping_string

Aes name
scatmat

Plots the lowertriangle and density plots of the scatter plot matrix.
mapping_swap_x_y

Swap x and y mapping
v1_ggmatrix_theme

Modify a ggmatrix object by adding an ggplot2 object to all
singleClassOrder

Order axis variables
broomify

Broomify a model
add_ref_lines

Add reference lines for each cell of the glyphmap.
baseball

Yearly batting records for all major league baseball players
add_to_ggmatrix

Modify a ggmatrix object by adding an ggplot2 object to all plots
brew_colors

RColorBrewer Set1 colors
add_ref_boxes

Add reference boxes around each cell of the glyphmap.
ggally_autopoint

Scatterplot for continuous and categorical variables
add_and_overwrite_aes

Add new aes
GGally-package

GGally: Extension to 'ggplot2'
column_is_character

Get vector of variable types from data frame
eval_data_col

Evaluate data column
australia_PISA2012

Programme for International Student Assessment (PISA) 2012 Data for Australia
ggally_barDiag

Bar plot
ggally_box

Box plot