Learn R Programming

reportRx (version 1.0)

plotci: Plot CI curve

Description

Plots a CI curve. Currently not very powerful. Only plots a single curve

Usage

plotci(data, response, group = NULL, units = "months", main = "Viral Infections", CI = F, legpos = "topleft", xlim = NULL, outcomes = NULL)

Arguments

data
dataframe containing data
response
character vector or list of character vector. If a list it plot the '1' event for all outcomes on the same plot
group
string of the group want to stratify by
units
units of time
main
String corresponding to title
CI
Bool If True will plot CI and only the '1' event. if F will plot all events except for the final one
legpos
string indicating which position to put legend choies are "topright" etc
xlim
numeric vector corresponding to xlimits. Default is NULL
outcomes
character vector of the names of the different competing outcomes