Learn R Programming

blindspiker (version 0.2.0)

plot_tat: Plot turnaround time

Description

Plot time for laboratory analysis by date (result date from lab - spiked sample submitted date)

Usage

plot_tat(select_analyte, dat = bs_df, target_days = 60)

Value

turn-around-time plot

Arguments

select_analyte

the selected analyte for this run chart

dat

data frame with all data needed as described in `bs_prep_and_analysis`. Default is `bs_df`.

target_days

The target turnaround time in days. Default = 60.

Examples

Run this code
example_spike_data <- system.file('extdata', 'spikevals.csv', package = 'blindspiker')
example_lab_data <- system.file('extdata', 'labvals.csv', package = 'blindspiker')
example_df <- bs_prep_and_analysis(spike_data = example_spike_data, lab_data = example_lab_data)
plot_tat(select_analyte = 'unknownium', dat = example_df, target_days = 60)

Run the code above in your browser using DataLab