knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%", message = FALSE, warning = FALSE )
The goal of healthyR is to help quickly analyze common data problems in the Administrative and Clincial spaces.
You can install the released version of healthyR from CRAN with:
install.packages("healthyR")
And the development version from GitHub with:
# install.packages("devtools") devtools::install_github("spsanderson/healthyR")
This is a basic example of using the ts_median_excess_plt() function`:
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:
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:
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" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.