| step_trend | R Documentation | 
Step change trend response model
step_trend(t, change_points, means, ...)
t | 
 numeric; vector of time points.  | 
change_points | 
 numeric; vector of change points, within   | 
means | 
 numeric; vector of means for the regimes implied by
  | 
... | 
 other arguments. Ignored here.  | 
sims <- step_trend(1:100, change_points = c(25, 75), means = c(2, 8, 4))
sims
library("ggplot2")
ggplot(sims, aes(x = t, y = trend)) +
  geom_step()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.