flowchart: Create a flowchart

Description Usage Arguments Author(s) Examples

Description

This function will draw a flowchart, useful for many purposes, e.g. visualizing the population selection for a specific study, and many others. If n and events are provided, event rates will automatically populate the boxes in the flowchart.

Usage

1
flowchart(description, n = NULL, events = NULL)

Arguments

description

Typically a character vector with text for each of the boxes in the flowchart.

n

Numeric vector of same length as 'description', describing number of subjects in each group.

events

Numeric vector of same length, describing number of events.

Author(s)

Daniel Lindholm

Examples

1
2
3
flow_data <- data.frame(descr = c("Population", "Subset1", "Further subset"),
                        n = c(1000, 800, 600), events = c(80, 70 , 30))
with(flow_data, flowchart(descr, n, events))

dlindholm/doctoR documentation built on May 15, 2019, 9:18 a.m.