Scatter plot function
scatt(
df,
x,
y,
xs = defx(),
ys = defy(),
title = NULL,
group = NULL,
col = NULL,
plot_id = FALSE,
size = pm_opts$scatter.size,
alpha = pm_opts$scatter.alpha,
scale_col = scale_color_brewer(palette = "Set2", name = ""),
...
)Data frame to plot.
Character name for x-axis data.
Character name for y-axis data.
See defx().
See defy().
Character, passed to ggplot2::ggtitle().
Character name of grouping variable.
Character name of variable to color the points.
If TRUE then subject IDs are plotted rather than points;
see the size argument - the size may need to be increased when plotting
IDs.
Passed to ggplot2::geom_point() or ggplot2::geom_text().
Passed to ggplot2::geom_point().
Discrete scale to use for coloring the points (see default).
Not used.
A single plot.
Since this function creates a scatter plot, both the x and y columns must
be numeric.