Description Usage Arguments Examples
Explore the distribution of your data with a scatterplot This function generates a ggplot2 object, so it's easily expanded with labels, themes, and other elements.
1 | viz_scatter(data, xvar, yvar)
|
data |
data.frame |
xvar |
variable |
yvar |
variable |
1 2 3 4 | x <- c(1,2,3,4,5)
y <- rnorm(5, x, 0.5)
my_data <- data.frame(x = x, y = y)
viz_scatter(my_data, x, y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.