Skip to content
How to make common social science diagrams using DiagrammeR
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
causal-diagrams
concepts
experiments
meta-analysis
sem
LICENSE
README.md
example-article.rmd
generate-png-from-all-diagrams.r

README.md

How to make common social science diagrams using DiagrammeR

The DiagrammeR package is great for programmatically creating diagrams using the GraphViz language.

However, it can be challenging to figure out how to create common graphs using GraphViz. Therefore, I compiled a list of some common graphs and plots to get you started.

Concepts

Display hierarchies and relationships between theoretical constructs.


Hierarchy of concepts

Experiments

Randomization procedure.


Randomized control trial, experiment and control group


Randomized control trial, experiment and control group - top down


2 x 3 factorial experiment with pre-test and post-test

Causal diagrams

Variables and relationships, directed acyclic graphs (DAG's) etc.


Cause and effect (2 variables)


Cause, mediator and effect (3 variables)


Cause, moderator and effect (3 variables)


Partial mediation with 1 mediator (3 variables)


Partial mediation with 2 mediators (4 variables)

Structural equation models

Latent factors and their indicators etc.


Moderated mediation with latent factor

Meta-analysis

Flowcharts for inclusion and exclusion of studies.


Meta-analysis flowchart for included and excluded studies


Meta-analysis flowchart for included and excluded studies, with labels

See also

You can’t perform that action at this time.