Learn R Programming

⚠️There's a newer version (1.0.0) of this package.Take me there.

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: 0.3.0 (CRAN)

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

Maintainer: Pau Satorra

License: MIT + file LICENSE

Encoding: UTF-8

Depends: R (>= 4.1.0)

Copy Link

Version

Install

install.packages('flowchart')

Monthly Downloads

603

Version

0.3.0

License

MIT + file LICENSE

Maintainer

Pau Satorra

Last Published

May 10th, 2024

Functions in flowchart (0.3.0)

update_y

update_y
update_x

update_x
safo

Random generated dataset from the SAFO study
is_class

is_class
clinic_patient

Simulated clinical trial information by patient Simulated dataset of a clinical trial comparing some biomarker values between two randomized groups (control/treatment). This dataset contains the information by patient. It is equivalent to the dataset clinic_visit, which has the same information by visit.
fc_draw

fc_draw
fc_export

fc_export
fc_modify

fc_modify
fc_merge

fc_merge
fc_split

fc_split
as_fc

as_fc
fc_filter

fc_filter
fc_stack

fc_stack
clinic_visit

Simulated clinical trial information by visit Simulated dataset of a clinical trial comparing some biomarker values between two randomized groups (control/treatment). This dataset contains the information by visit. It is equivalent to the dataset clinic_patient, which has the same information by patient.
update_y_stack

update_y_stack