View source: R/ggScatterPlot.R
ggScatterPlot | R Documentation |
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(), ... )
x, y |
The vectors to display in the scatter plot. Alternatively,
|
jitter |
Whether to jitter the points ( |
size, alpha, shape, color, fill, stroke |
Quick way to set the aesthetics. |
plotTheme |
The theme to apply. |
... |
And additional arguments are passed to |
A ggplot2::ggplot()
plot is returned.
ggplot2::geom_point()
rosetta::ggScatterPlot(mtcars$hp, mtcars$mpg);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.