This package aids in rapidly creating a PRISMA diagram for use in meta-analysis from a simple dataframe tracking the use of publications in the analysis.
The minimal arguments needed are: 1. Pub.ID: A unique publication ID. 2. Source: A source identifier to describe where the study is from. 3. Filter: A Filter identifier to describe how the study is filtered out or left NA if used.
From a dataframe with only the three arguments stated above we can get an initial PRISMA diagram.
We can also obtain a custom prismaFormat dataframe to modify to change items in the PRISMA as desired. By default this dataframe has 3 arguments: 1. prismaLvl: This describes the level the node is created at. 2. nodeType: This describes the type of node it is. 3. prismaTxt: The text used in the node for the PRISMA diagram.
prismaLvl | nodeType | prismaTxt |
1.000 | Source | Source: c |
1.000 | Source | Source: b |
1.000 | Source | Source: a |
2.000 | Filter | Filter: d |
3.000 | Filter | Filter: c |
4.000 | Filter | Filter: b |
5.000 | Filter | Filter: a |
2.000 | Node | Studies Remaining: |
3.000 | Node | Studies Remaining: |
4.000 | Node | Studies Remaining: |
5.000 | Node | Studies Remaining: |
6.000 | End | Studies in Analysis |
We can add the fontSize argument to the datatable to customize the fontsize in each node.
It is also possible to create the PRISMA directly from prismaFormat and create nodes that do not need a filter.