scatt | R Documentation |
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 = ""),
...
)
df |
Data frame to plot. |
x |
Character name for x-axis data. |
y |
Character name for y-axis data. |
xs |
See |
ys |
See |
title |
Character, passed to |
group |
Character name of grouping variable. |
col |
Character name of variable to color the points. |
plot_id |
If |
size |
Passed to |
alpha |
Passed to |
scale_col |
Discrete scale to use for coloring the points (see default). |
... |
Not used. |
Since this function creates a scatter plot, both the x
and y
columns must
be numeric.
A single plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.