powered by
This function provides a simple interface to create a ggplot2::ggplot() bar chart.
ggplot2::ggplot()
ggScatterPlot( x, y, jitter = TRUE, size = 3, alpha = 0.66, shape = 16, color = "black", fill = "black", stroke = 1, plotTheme = ggplot2::theme_bw(), ... )
A ggplot2::ggplot() plot is returned.
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.
x
y
Whether to jitter the points (TRUE by default).
TRUE
Quick way to set the aesthetics.
The theme to apply.
And additional arguments are passed to ggplot2::geom_point().
ggplot2::geom_point()
rosetta::ggScatterPlot(mtcars$hp, mtcars$mpg);
Run the code above in your browser using DataLab