| fg_addbreakouts | R Documentation |
Wrapper around the function ecp::e.divisive() to create events for fgts_dygraph()
fg_addbreakouts(indta, annotationstyle = "singleasdate", ...)
indta |
Time series |
annotationstyle |
String in set ( |
... |
Parameters passed to |
Event Helpers : fg_addbreakouts
data.table suitable for passing into fgts_dygraph() via the event_ds parameter
if (requireNamespace("ecp", quietly = TRUE)) {
dta <- tail(eqtypx[,.(date,QQQ,TLT)],2*260)
fgts_dygraph(dta,event_ds=fg_addbreakouts(dta,min.size=66,R=40),title="With Breakouts")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.