View source: R/ksnet_scatter.R
ksnet_scatter | R Documentation |
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.
ksnet_scatter(data, xvar, yvar, color = color_ksnet()[1])
data |
data.frame |
xvar |
variable |
yvar |
variable |
ggplot
x <- rnorm(100)
y <- rnorm(100, x, 1)
my_data <- data.frame(x = x, y = y)
ksnet_scatter(my_data, x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.