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
library(devtools)
install_github("ggobi/ggally")
# CRAN
install.packages("GGally")

Copy Link

Version

Install

install.packages('GGally')

Monthly Downloads

100,245

Version

2.2.1

License

GPL (>= 2.0)

Issues

Pull Requests

Stars

Forks

Last Published

February 14th, 2024

Functions in GGally (2.2.1)

ggally_denstrip

Tile plot with facets
ggally_cor_v1_5

Correlation value plot
ggally_dot_and_box

Box and dot plot
ggally_density

Bivariate density plot
ggally_densityDiag

Univariate density plot
ggally_dot

Grouped dot plot
ggally_nostic_line

ggnostic background line with geom
ggally_statistic

Generalized text display
ggally_nostic_hat

ggnostic leverage points
ggally_diagAxis

Internal axis labels for ggpairs
ggally_smooth

Scatter plot with a smoothed line
ggally_facetdensity

Faceted density plot
ggally_colbar

Column and row bar plots
ggally_cor

Correlation value plot
ggally_facetbar

Faceted bar plot
ggally_nostic_cooksd

ggnostic Cook's distance
ggcorr

Correlation matrix
ggally_count

Display counts of observations
ggally_cross

Plots the number of observations
ggally_points

Scatter plot
ggally_ratio

Mosaic plot
ggally_na

NA plot
ggally_summarise_by

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

Text plot
ggally_box

Box plot
ggduo

ggplot2 generalized pairs plot for two columns sets of data
ggally_trends

Trends line plot
ggally_table

Display a table of the number of observations
ggmatrix_gtable

ggmatrix gtable object
ggmatrix

ggplot2 plot matrix
ggally_crosstable

Display a cross-tabulated table
ggally_nostic_resid

ggnostic residuals
ggally_nostic_se_fit

ggnostic fitted value's standard error
ggally_facetdensitystrip

Density or tiles plot with facets
ggally_facethist

Faceted histogram
ggbivariate

Display an outcome using several potential explanatory variables
ggally_nostic_sigma

ggnostic leave one out model sigma
ggcoef

Model coefficients with broom and ggplot2
ggfacet

gglegend

Plot only legend of plot function
ggally_nostic_std_resid

ggnostic standardized residuals
ggpairs

ggplot2 generalized pairs plot
ggparcoord

Parallel coordinate plot
ggnet

Network plot
ggnet2

Network plot
grab_legend

Grab the legend and print it as a plot
is_horizontal

Check if plot is horizontal
ggsurv

Survival curves
ggscatmat

Traditional scatterplot matrix for purely quantitative variables
ggmatrix_progress

ggmatrix default progress bar
ggmatrix_location

ggmatrix plot locations
glyphs

Create glyphplot data
glyphplot

Glyph plot class
lowertriangle

lowertriangle - rearrange dataset as the preparation of ggscatmat function
plotting_data_type

Get plotting data type
happy

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

Aes name
mapping_color_to_fill

Aesthetic mapping color fill
ggtable

Cross-tabulated tables of discrete variables
rescale01

Rescaling functions
nasa

Data from the Data Expo JSM 2006.
skewness

Sample skewness
scag_order

Find order of variables
print.ggmatrix

Print ggmatrix object
print_if_interactive

Print if not CRAN
tips

Tipping data
pigs

United Kingdom Pig Production
str.ggmatrix

ggmatrix structure
psychademic

UCLA canonical correlation analysis data
singleClassOrder

Order axis variables
reexports

Objects exported from other packages
model_response_variables

Model term names
mapping_swap_x_y

Swap x and y mapping
scatmat

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

Multiple time series
vig_ggally

View GGally vignettes
wrap_fn_with_param_arg

Wrap a function with different parameter values
ggnetworkmap

Network plot map overlay
putPlot

Insert a plot into a ggmatrix object
twitter_spambots

Twitter spambots
ggnostic

Plot matrix of statistical model diagnostics
remove_color_unless_equal

Remove colour mapping unless found in select mapping keys
plot_types

Plot Types
require_namespaces

Loads package namespaces
is_date

Check if object is a date
is_blank_plot

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

Pipe operator
uppertriangle

Rearrange dataset as the preparation of ggscatmat function
v1_ggmatrix_theme

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

Add reference boxes around each cell of the glyphmap.
eval_data_col

Evaluate data column
broomify

Broomify a model
brew_colors

RColorBrewer Set1 colors
GGally-package

GGally: Extension to 'ggplot2'
add_ref_lines

Add reference lines for each cell of the glyphmap.
add_and_overwrite_aes

Add new aes
column_is_character

Get vector of variable types from data frame
australia_PISA2012

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

Yearly batting records for all major league baseball players
fn_switch

Function switch
getPlot

Subset a ggmatrix object
ggally_autopoint

Scatterplot for continuous and categorical variables
+.gg

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

Historical data used for classification examples.
ggally_blank

Blank plot
ggally_barDiag

Bar plot
get_x_axis_labels

Get x axis labels
find_plot_type

Find plot types