scatter_plot | R Documentation |
create a scatter plot
scatter_plot(
data,
x,
y,
group = NULL,
palette = ez_col,
size = 11,
point_size = 2.5,
smooth = FALSE,
env = parent.frame()
)
data |
A data.frame. |
x |
A named character value. Evaluates to a column. |
y |
A named character value. Evaluates to a column. |
group |
A character value. Evaluates to a column. |
palette |
Colour function. |
size |
theme size for |
point_size |
Numeric. Default is 2. |
smooth |
logical. If |
env |
environment for evaluating expressions. |
scatter_plot(mtcars, "wt", "hp")
scatter_plot(mtcars, "wt", "hp", "factor(cyl)")
scatter_plot(mtcars, "factor(cyl)", "hp")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.