Description Usage Arguments Examples
Draw a scatter plot and color the points along the principal components. Color direction becomes the data spread the most.
1 2 3 |
data |
data frame to be plotted. |
mapping |
aesthetic mapping. Since this function automatically colors the points, just specify only x and y. |
col_low |
low end of the gradient. |
col_high |
high end of the gradient. |
alpha_focus |
If TRUE; transparency let dense points visible |
alpha_range |
range argument of [scale_alpha] |
alpha |
Set alpha parameter at one value |
global |
give aes mapping in the global ggplot environment. |
... |
Additional parameters for geom_point() |
1 | gg_scatter(ggplot2::mpg, mapping = ggplot2::aes(x = displ, y = hwy), global = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.