Description Usage Arguments Value Examples
View source: R/sccwrpwbe_functions.R
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.
1 | ggcorr_offset(data, range, target, n = 1L, CC = F, ...)
|
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 |
Prints plot with normalization method across rows and offsets across cols
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')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.