Plot a shift in mean or variance

plotSectionMeans(
  x,
  time,
  vals,
  add.to.plot = ggplot2::ggplot(),
  mean.color = "red"
)

Arguments

x

Output of detectShiftCore()

time

Input time vector

vals

input value vector

add.to.plot

ggplot to add this to

mean.color

color of the mean lines

Value

A ggplot object