Learn R Programming

flowchart

        

Tidy Flowchart Generator

flowchart is an R package for drawing participant flow diagrams directly from a dataframe using tidyverse. It provides a set of functions that can be combined with a pipe operator to create all kinds of flowcharts from a dataframe in an easy way.

You can see the package in action in: https://bruigtp.github.io/flowchart/

How to install it?

The package is available on CRAN: https://cran.r-project.org/web/packages/flowchart/index.html.

install.packages("flowchart")

We can download the development version from the github repository:

# install.packages("remotes")
remotes::install_github('bruigtp/flowchart')

How it works?

The following GIF provides an example of the tidy process of drawing a flowchart for a clinical trial:

About

Package: flowchart

Type: Package

Version: 1.0.0 (CRAN)

Authors: Pau Satorra, João Carmezim, Natàlia Pallarès, Cristian Tebé, Kenneth A. Taylor.

Maintainer: Pau Satorra

License: GPL (>= 3)

Encoding: UTF-8

Depends: R (>= 4.1.0)

Copy Link

Version

Install

install.packages('flowchart')

Monthly Downloads

996

Version

1.0.0

License

GPL (>= 3)

Maintainer

Pau Satorra

Last Published

November 26th, 2025

Functions in flowchart (1.0.0)

fc_view

fc_view
fc_draw

fc_draw
update_x

update_x
summary.fc

summary.fc
format_percentage

format_percentage
is_class

is_class
update_numbers

update_numbers
safo

Random generated dataset from the SAFO study
quiet_prettyNum

quiet_prettyNum
update_y_stack_unite

update_y_stack_unite
replace_num_in_expr

replace_num_in_expr
plot.fc

plot.fc
print.fc

print.fc
update_y_stack

update_y_stack
update_y

update_y
fc_export

fc_export
fc_filter

fc_filter
as_fc

as_fc
fc_modify

fc_modify
fc_theme

fc_theme
fc_merge

fc_merge
fc_stack

fc_stack
fc_split

fc_split