plot_series | R Documentation |
This function creates a time series plot using ggplot2.
plot_series(data, label_x = "", label_y = "", colors = NULL)
data |
data.frame contain x, value, and variable |
label_x |
x-axis label |
label_y |
y-axis label |
colors |
color vector |
returns a ggplot graphic
x <- seq(0, 10, 0.25)
data <- data.frame(x, sin=sin(x))
head(data)
grf <- plot_series(data, colors=c("red"))
plot(grf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.