Learn R Programming

EmpiricalDynamics (version 0.1.2)

plot_timeseries: Time Series Plot

Description

Creates a time series plot with optional trend line and change point detection.

Usage

plot_timeseries(
  data,
  var,
  time = NULL,
  show_trend = TRUE,
  highlight_changes = TRUE
)

Value

A ggplot object.

Arguments

data

Data frame.

var

Variable name to plot.

time

Time variable name.

show_trend

Add trend line?

highlight_changes

Highlight potential structural breaks?