Description Usage Arguments Details Examples
Scatter plots for all combinations of numeric variables.
1 | plot_scatter(df, plot_reduce = TRUE, n = 50, ...)
|
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(). |
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.
1 2 3 | plot_scatter(iris)
plot_scatter(iris, plot_reduce = TRUE, n = 50, ggplot2::aes(color = Species))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.