plot_no_in_caliper: Plot number of previous observation in caliper over time

Description Usage Arguments Details Value

View source: R/viz_no_in_caliper.R

Description

A wrapper for no_in_caliper that returns a plot instead of a data frame. Returns a ggplot object.

Usage

1
plot_no_in_caliper(cw_list, df, first_t, percentage = TRUE)

Arguments

cw_list

List or vector of caliper width value.

df

Data frame containing the pooling variables. The first column needs to be called "t" and contain the timepoint, in the form of an unbroken sequence of integers, the smallest of which needs to be smaller than the first_t argument.

first_t

Timepoint ("t") from which to start counting.

percentage

Should the number of observations within the caliper (FALSE) or the percentage (TRUE) be returned?

Details

Details go here.

Value

A ggplot object.


ooelrich/oscbvar documentation built on Sept. 8, 2021, 3:31 p.m.