-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME.Rmd
93 lines (72 loc) · 2.5 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%",
message = FALSE,
warning = FALSE
)
```
# healthyR <img src="man/figures/logo.png" width="147" height="170" align="right" />
<!-- badges: start -->
[](https://cran.r-project.org/package=healthyR)


[](https://lifecycle.r-lib.org/articles/stages.html##experimental)
[](https://makeapullrequest.com)
<!-- badges: end -->
The goal of healthyR is to help quickly analyze common data problems in the Administrative and Clincial spaces.
## Installation
You can install the released version of healthyR from [CRAN](https://CRAN.R-project.org) with:
``` r
install.packages("healthyR")
```
And the development version from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("spsanderson/healthyR")
```
## Example
This is a basic example of using the ts_median_excess_plt() function`:
```{r example}
library(healthyR)
library(timetk)
library(dplyr)
ts_signature_tbl(.data = m4_daily, .date_col = date, .pad_time = TRUE, id) %>%
ts_median_excess_plt(
.date_col = date
, .value_col = value
, .x_axis = week
, .ggplot_group_var = year
, .years_back = 5
)
```
Here is a simple example of using the ts_signature_tbl() function:
```{r cars}
library(healthyR)
library(timetk)
ts_signature_tbl(.data = m4_daily, .date_col = date)
```
Here is a simple example of using the plt_gartner_magic_chart() function:
```{r gartner_chart}
suppressPackageStartupMessages(library(healthyR))
suppressPackageStartupMessages(library(tibble))
suppressPackageStartupMessages(library(dplyr))
gartner_magic_chart_plt(
.data = tibble(x = rnorm(100, 0, 1), y = rnorm(100, 0, 1))
, .x_col = x
, .y_col = y
, .y_lab = "los"
, .x_lab = "RA"
, .plot_title = "Test Title"
, .top_left_label = "Top Left lbl"
, .top_right_label = "Top Right lbl"
, .bottom_left_label = "Bottom Left lbl"
, .bottom_right_label = "Bottom Right lbl"
)
```