Title: | Make Interactive 'PRISMA' Flow Diagrams |
---|---|
Description: | Systematic reviews should be described in a high degree of methodological detail. The 'PRISMA' Statement calls for a high level of reporting detail in systematic reviews and meta-analyses. An integral part of the methodological description of a review is a flow diagram. This package produces an interactive flow diagram that conforms to the 'PRISMA2020' preprint. When made interactive, the reader/user can click on each box and be directed to another website or file online (e.g. a detailed description of the screening methods, or a list of excluded full texts), with a mouse-over tool tip that describes the information linked to in more detail. Interactive versions can be saved as HTML files, whilst static versions for inclusion in manuscripts can be saved as HTML, PDF, PNG, SVG, PS or WEBP files. |
Authors: | Neal Haddaway [aut] |
Maintainer: | Chris Pritchard <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.1.1 |
Built: | 2025-03-13 04:17:10 UTC |
Source: | https://github.com/cran/PRISMA2020 |
Read in a template CSV containing data for the flow diagram
PRISMA_data(data)
PRISMA_data(data)
data |
File to read in. |
A list of objects needed to plot the flow diagram
csvFile <- system.file("extdata", "PRISMA.csv", package = "PRISMA2020") data <- read.csv(csvFile); data <- PRISMA_data(data);
csvFile <- system.file("extdata", "PRISMA.csv", package = "PRISMA2020") data <- read.csv(csvFile); data <- PRISMA_data(data);
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, 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 )
PRISMA_flowdiagram( data, interactive = FALSE, previous = TRUE, other = TRUE, detail_databases = FALSE, detail_registers = 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 )
data |
List of data inputs including numbers of studies,
box text, tooltips, and urls for hyperlinks.
Data inputted via the |
interactive |
Logical argument TRUE or FALSE whether to plot interactivity (tooltips and hyperlinked boxes). |
previous |
Logical argument (TRUE or FALSE) specifying whether previous studies were sought. |
other |
Logical argument (TRUE or FALSE) specifying whether other studies were sought. |
detail_databases |
Logical argument (TRUE or FALSE) specifying whether to list specific databases. |
detail_registers |
Logical argument (TRUE or FALSE) specifying whether to list specific registers. |
fontsize |
The font size for text in each box. The default is '12'. |
font |
The font for text in each box. The default is 'Helvetica'. |
title_colour |
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. |
greybox_colour |
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. |
main_colour |
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. |
arrow_colour |
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. |
arrow_head |
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 |
arrow_tail |
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 |
side_boxes |
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); 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); plot
Save the output from PRISMA_flowdiagram()
to the
working directory.
PRISMA_save( plotobj, filename = "PRISMA2020_flowdiagram.html", filetype = NA, overwrite = FALSE )
PRISMA_save( plotobj, filename = "PRISMA2020_flowdiagram.html", filetype = NA, overwrite = FALSE )
plotobj |
A plot produced using |
filename |
The filename to save (including extension) |
filetype |
The filetype to save the plot in, supports: HTML, ZIP, PDF, PNG, SVG, PS and WEBP (if NA, the filetype will be calculated out based on the file extension) HTML files maintain hyperlinks and tooltips The ZIP option creates an archive containing the HTML file, alongside supporting javascript and css files in an adjacent folder, instead of embedded base64 within the HTML file |
overwrite |
if TRUE, will overwrite an existing file |
the absolute filename of the saved 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); PRISMA_save(plot, filename = tempfile(), filetype="html");
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); PRISMA_save(plot, filename = tempfile(), filetype="html");
Defunct function - replaced by "PRISMA_data"
read_PRISMAdata(data)
read_PRISMAdata(data)
data |
File to read in. |
Defunct function - replaced by "PRISMA_interactive_"
sr_flow_interactive(plot, urls, previous, other)
sr_flow_interactive(plot, urls, previous, other)
plot |
A plot object from |
urls |
A dataframe consisting of two columns: nodes and urls. The first column should contain 19 rows for the nodes from node1 to node19. The second column should contain a corresponding URL for each node. |
previous |
Logical argument (TRUE or FALSE) (supplied through
|
other |
Logical argument (TRUE or FALSE) (supplied through
|