powered by
Plot multiple axes of a data frame or a fortified dimension reduction.
ggpairs( df_data, group = NULL, axes = 1:2, variables = FALSE, n_vars = 0, ellipses = FALSE, ..., title = NULL, colors = if (!is.null(group)) nice_palette(df_data[[group]]) )
ggmatrix
Data frame
Column name of the grouping of observations
Axes to plot. If more than 2, plots all pair combinations
Logical, plot variable contributions of the dimension reduction to the selected axes, only for 2 axes
Maximum number of variable contributions to plot. By default 0, for all variables.
Logical, plot ellipses of groups
Passed to ggplot2 stat_ellipse if ellipses are requested
String to add as title, default NULL
Vector of colors for each group
fortify_pca, fortify_ica
df_pca <- fortify_pca(iris[-5]) ggpairs(df_pca) df_pca <- fortify_pca(iris[-5], sup_vars = iris[5]) ggpairs(df_pca, group = 'Species', ellipses = TRUE, variables = TRUE)
Run the code above in your browser using DataLab