R/PRISMA_flowdiagram.R
PRISMA_flowdiagram.Rd
Produces a PRISMA2020 style flow diagram for systematic reviews, with the option to add interactivity through tooltips (mouseover popups) and hyperlink URLs to each box. Data can be imported from the standard CSV template provided.
PRISMA_flowdiagram(
data,
interactive = FALSE,
previous = TRUE,
other = TRUE,
detail_databases = FALSE,
detail_registers = FALSE,
meta_analysis = FALSE,
fontsize = 7,
font = "Helvetica",
title_colour = "Goldenrod1",
greybox_colour = "Gainsboro",
main_colour = "Black",
arrow_colour = "Black",
arrow_head = "normal",
arrow_tail = "none",
side_boxes = TRUE
)
List of data inputs including numbers of studies,
box text, tooltips, and urls for hyperlinks.
Data inputted via the PRISMA_data()
function.
If inputting individually, see the necessary parameters
listed in the PRISMA_data()
) function and
combine them in a list using data <- list()
.
Logical argument TRUE or FALSE whether to plot interactivity (tooltips and hyperlinked boxes).
Logical argument (TRUE or FALSE) specifying whether previous studies were sought.
Logical argument (TRUE or FALSE) specifying whether other studies were sought.
Logical argument (TRUE or FALSE) specifying whether to list specific databases.
Logical argument (TRUE or FALSE) specifying whether to list specific registers.
Logical argument (TRUE or FALSE) specifying whether to display a box for meta-analysis
The font size for text in each box. The default is '12'.
The font for text in each box. The default is 'Helvetica'.
The colour for the upper middle title box (new studies). The default is 'Goldenrod1'. See 'DiagrammeR' colour scheme. http://rich-iannone.github.io/DiagrammeR/graphviz_and_mermaid.html#colors.
The colour for the left and right column boxes. The default is 'Gainsboro'. See 'DiagrammeR' colour scheme http://rich-iannone.github.io/DiagrammeR/graphviz_and_mermaid.html#colors.
The colour for the main box borders. The default is 'Black'. See 'DiagrammeR' colour scheme http://rich-iannone.github.io/DiagrammeR/graphviz_and_mermaid.html#colors.
The colour for the connecting lines. The default is 'Black'. See 'DiagrammeR' colour scheme http://rich-iannone.github.io/DiagrammeR/graphviz_and_mermaid.html#colors.
The head shape for the line connectors. The default is 'normal'. See DiagrammeR arrow shape specification http://rich-iannone.github.io/DiagrammeR/graphviz_and_mermaid.html#arrow-shapes. #nolint
The tail shape for the line connectors. The default is 'none'. See DiagrammeR arrow shape specification http://rich-iannone.github.io/DiagrammeR/graphviz_and_mermaid.html#arrow-shapes. #nolint
Whether or not to include the blue label boxes along the side
A flow diagram plot.
csvFile <- system.file("extdata", "PRISMA.csv", package = "PRISMA2020")
data <- read.csv(csvFile);
data <- PRISMA_data(data);
plot <- PRISMA_flowdiagram(data,
fontsize = 12,
interactive = TRUE,
previous = FALSE,
other = TRUE);
#> Warning: 2.5
plot