ksnet_line | R Documentation |
This function generates a ggplot2 object, so it's easily expanded with labels, themes, and other elements.
ksnet_line(data, xvar, yvar, color = color_ksnet()[1])
data |
data.frame |
xvar |
variable |
yvar |
variable |
ggplot2
x <- c("A","B","C","D")
y <- c(5, 8, 12,15)
my_data <- data.frame(x = x, y = y)
ksnet_line(my_data, x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.