Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two Sided Moving Average Plot ts_two_sided_ma_plot #97

Closed
spsanderson opened this issue Sep 27, 2021 · 1 comment
Closed

Two Sided Moving Average Plot ts_two_sided_ma_plot #97

spsanderson opened this issue Sep 27, 2021 · 1 comment
Assignees
Labels
Projects

Comments

@spsanderson
Copy link
Owner

This function should return a two-sided moving average plot.

library(healthyR.data)
library(dplyr)
library(timetk)


data_tbl <- healthyR_data%>%
    filter(ip_op_flag == 'I') %>%
    summarise_by_time(
        .date_var = visit_end_date_time,
        .by = "month",
        value = n()
    ) %>%
    filter_by_time(
        .date_var = visit_end_date_time,
        .start_date = "2015",
        .end_date = "2019"
    ) %>%
    rename(date_col = visit_end_date_time)

ts_two_sided_ma_plot(.data, .date_col, .value_col, .interactive)
@spsanderson spsanderson self-assigned this Sep 27, 2021
@spsanderson spsanderson added this to To do in healthyR.ts via automation Sep 27, 2021
@spsanderson spsanderson added this to the 0.1.4 milestone Sep 27, 2021
@spsanderson
Copy link
Owner Author

Closing this as the ts_sma_plot can handle alignment via timetk::slidify_vec() function rendering this obsolete.

healthyR.ts automation moved this from To do to Done Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

1 participant