plot_scatter: Plot Scatter

Description Usage Arguments Details Examples

View source: R/plot_scatter.R

Description

Scatter plots for all combinations of numeric variables.

Usage

1
plot_scatter(df, plot_reduce = TRUE, n = 50, ...)

Arguments

df

A data frame.

plot_reduce

Boolean. Deduplicate variable list before plotting? Defaults to TRUE. See Details below for more information.

n

Threshold for max number of plots. Defaults to 50.

...

Optional arguments passed to geom_point().

Details

The plot_reduce argument serves to deduplicate the variables plotted by plot_scatter(). For instance, when set to TRUE (default), plot_scatter() will return the (x, y) plot, but not (y, x). This is determined alphabetically. In no case will the (x, x) plot be produced.

The argument n sets the max number of plots allowed by the plotting function. This is done to prevent producing a large number of plots by accident. Change this value to override the default of 50.

Examples

1
2
3
plot_scatter(iris)

plot_scatter(iris, plot_reduce = TRUE, n = 50, ggplot2::aes(color = Species))

justinmarschall/vasco documentation built on May 9, 2020, 11:52 a.m.