powered by
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() )
A data.frame.
A named character value. Evaluates to a column.
A character value. Evaluates to a column.
Colour function.
theme size for use_theme(). Default is 14.
use_theme()
Numeric. Default is 2.
logical. If TRUE, adds geom_smooth().
TRUE
geom_smooth()
environment for evaluating expressions.
scatter_plot(mtcars, "wt", "hp") scatter_plot(mtcars, "wt", "hp", "factor(cyl)") scatter_plot(mtcars, "factor(cyl)", "hp")
Run the code above in your browser using DataLab