This function provides a simple interface to create a ggplot2::ggplot()
bar chart.
ggScatterPlot(
x,
y,
jitter = TRUE,
size = 3,
alpha = 0.66,
shape = 16,
color = "black",
fill = "black",
stroke = 1,
plotTheme = ggplot2::theme_bw(),
...
)
The vectors to display in the scatter plot. Alternatively,
x
can be a data frame; then y
has to be a vector with (numeric or
character) indices, e.g. column names.
Whether to jitter the points (TRUE
by default).
Quick way to set the aesthetics.
The theme to apply.
And additional arguments are passed to ggplot2::geom_point()
.
A ggplot2::ggplot()
plot is returned.
rosetta::ggScatterPlot(mtcars$hp, mtcars$mpg);