Description Usage Arguments See Also Examples

Plot the trends from a DFA

1 2 3 4 5 6 | ```
plot_trends(
rotated_modelfit,
years = NULL,
highlight_outliers = FALSE,
threshold = 0.01
)
``` |

`rotated_modelfit` |
Output from |

`years` |
Optional numeric vector of years for the plot |

`highlight_outliers` |
Logical. Should trend events
that exceed the probability of occurring with a normal distribution as
defined by |

`threshold` |
A probability threshold below which to flag trend events as extreme. Defaults to 0.01 |

dfa_trends plot_loadings fit_dfa rotate_trends

1 2 3 4 5 6 | ```
set.seed(1)
s <- sim_dfa(num_trends = 1)
m <- fit_dfa(y = s$y_sim, num_trends = 1, iter = 50, chains = 1)
r <- rotate_trends(m)
p <- plot_trends(r)
print(p)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.