pairs_plot.Rd
This is a wrapper to the GGally
based pairs plot of a list of variables
displayed as scatterplots for pairs of continuous variables, density functions in
the diagonal, and boxplots for pairs of continuous and categorical variables.
Optionally, a by
categorical variable can be provided.
pairs_plot(variables, data, by = NULL)
A GGally::ggpairs
plot.
# A simple pairs plot
pairs_plot(variables = c("sex_dimorph", "attractive"),
data = faithfulfaces)
#> Registered S3 method overwritten by 'GGally':
#> method from
#> +.gg ggplot2
# A pairs plot with grouping variable
pairs_plot(variables = c("sex_dimorph", "attractive"),
by = face_sex,
data = faithfulfaces)