CR_plot: Control-Randomization plot

Description Usage Arguments Value

View source: R/RAC_plots.R

Description

Makes a CR plot of the data, with treated individuals in red and opaque, control individuals translucent blue. Assumes prognostic scores and IV are already in the data as prog and IV

Usage

1
CR_plot(data, title = "", opaque_class = 1)

Arguments

data

a data.frame or tibble with t, prog, and IV

title

a title for the plot

opaque_class

1, 0 or "none". Specifies which class should be opaque and which should be translucent

Value

a ggplot object


raikens1/RACplots documentation built on July 10, 2021, 11:08 a.m.