ggcorr_offset: ggcorr_offset

Description Usage Arguments Value Examples

View source: R/sccwrpwbe_functions.R

Description

The function ggcor_offset takes in a vector of offsets and other parameters from covid_lag as well as ... parameters from date_range and creates a correlation plot matrix. The rows of the matrix are the 4 normalization methods and the cols are the number of days the concentrations have been offset.

Usage

1
ggcorr_offset(data, range, target, n = 1L, CC = F, ...)

Arguments

data

Formatted Hyperion or Pt.Loma df

range

Vector of offset values to shift concentrations

target

Character 'N1' or 'N2' "assays"

n

Number of days to difference

CC

Boolean for if concentrations are to be differenced

...

Parameters from date_range

Value

Prints plot with normalization method across rows and offsets across cols

Examples

1
2
#Plot offset concentrations and cases by 1,3,5,7 days
Hyperion %>% ggcorr_offset(c(1,3,5,7) , target = 'N1' , start = '2020-05-25' , end = '2020-10-20')

atki2828/sccwrpwbe documentation built on Dec. 19, 2021, 5:41 a.m.