scatterplot_matrix: Make a scatterplot matrix

View source: R/visualization-utils.R

scatterplot_matrixR Documentation

Make a scatterplot matrix

Description

Make a scatterplot matrix

Usage

scatterplot_matrix(.data, ..., .by = NULL, .bins = 10)

Arguments

.data

A data frame

...

A comma separated list of tidyselections of columns. This can be as simple as a set of column names.

.by

An optional categorical variable by which to group and colour the points.

.bins

The number of bins in the histograms on diagonal of matrix.

Value

A GGally::ggpairs plot.

Examples

data_df <- test_psychometrics %>%
              total_scores(x = starts_with('x_'), 
                           y = starts_with('y_'), 
                           z = starts_with('z_'))
scatterplot_matrix(data_df, x, y, z)

mark-andrews/psyntur documentation built on Nov. 18, 2024, 7:17 a.m.