Generic exclusion flow charts

PRISMA flow charts are a special case of a common plot used in clinical research. There are many examples where a population is whittled down to a study group, and, in good reports, the process is described. A flow chart is an effective way of presenting this data.

library(PRISMAstatement)
suppressPackageStartupMessages(library(DiagrammeR))
knitr::opts_chunk$set(
  collapse = TRUE,
  fig.width = 3
  )
flow_exclusions(
  incl_counts = c(972, 132, 77, 14),
  total_label = "Total Screened",
  incl_labels = c("Consented", "Completed Study", "BMI <= 30"),
  excl_labels = c("Declined Consent", "Failed to Complete", "BMI > 30")
)
flow_exclusions(c(1000, 300, 150, 75, 38), percent_of_total = TRUE)
flow_exclusions(c(100000, 3000, 1666, 411, 38),
                percent_of_prev = TRUE,
                show_count = FALSE)
flow_exclusions(
  incl_counts = c(972, 132, 77, 14),
  total_label = "Total Screened",
  incl_labels = c("Consented", "Completed Study", "BMI <= 30"),
  excl_labels = c("Declined Consent", "Failed to Complete", "BMI > 30"), 
  percent_of_total = TRUE,
  percent_of_prev = FALSE,
  show_count = FALSE,
  font_size = 14)


Try the PRISMAstatement package in your browser

Any scripts or data that you put into this service are public.

PRISMAstatement documentation built on May 9, 2019, 1:03 a.m.