plot_series: Plot series

View source: R/graphics.R

plot_seriesR Documentation

Plot series

Description

This function creates a time series plot using ggplot2.

Usage

plot_series(data, label_x = "", label_y = "", colors = NULL)

Arguments

data

data.frame contain x, value, and variable

label_x

x-axis label

label_y

y-axis label

colors

color vector

Value

returns a ggplot graphic

Examples

x <- seq(0, 10, 0.25)
data <- data.frame(x, sin=sin(x))
head(data)

grf <- plot_series(data, colors=c("red"))
plot(grf)

daltoolbox documentation built on Nov. 3, 2024, 9:06 a.m.