{ggflowchart}

{ggflowchart} is an R package for producing flowcharts using {ggplot2}.

Installation

Install the package from CRAN using:

install.packages("ggflowchart")

or install the development version from GitHub:

# remotes::install_github("nrennie/ggflowchart")
install.packages("ggflowchart", repos = c('https://nrennie.r-universe.dev', 'https://cloud.r-project.org'))

Usage

The idea of {ggflowchart} is to create simple flowcharts with minimal effort. Currently, all flowcharts are constructed using the ggflowchart() function. For the most basic flowchart, it takes as input a data frame containing (at least) two columns for the start and end points of the edges in the flowchart.

data <- tibble::tibble(from = c("A", "A", "A", "B", "C", "F"),
                       to = c("B", "C", "D", "E", "F", "G"))

The flowchart is then created using ggflowchart().

ggflowchart(data)

See vignettes for further examples of usage.

Aesthetic mappings

Some arguments can be mapped to aesthetics and some cannot. Arguments that can currently be mapped to aesthetics:

Arguments that may be mapped to aesthetics in future:

Upcoming features

Upcoming features that are currently listed as issues being worked on include:

If you have a suggestion of an additional feature, or find a bug, please file an issue on the GitHub repository.

Contributor guidelines

If you'd like to contribute to {ggflowchart}, I'd welcome your help. If you're making a PR, please follow the guidelines below, to make the collaboration easier:

If these checks fail, and there is no response from the PR author for 1 month, the PR will be automatically closed.