R practical — heat maps and cross-tabulations for systematic maps
CIRAD, UPR HortSys
By the end of this practical, you will be able to:
This morning you designed a codebook. Each coded variable can become an axis of a map.
Today’s data: a published systematic map on diversified farming and biodiversity (Jones et al. 2021).
Our question Where is the evidence — and where is it missing — on the effects of farm diversification on biodiversity?
Coding shapes the map The published dictionary lists “cover crop”; the data contain none. The data contain “Associated plant species”; the dictionary does not define it.
Show of hands
The dataset has 360 rows from 1992. How many studies is that?
One study can report dozens of comparisons (taxa, sites, dates). Rows are not studies — and they are not independent. Count with n_distinct(study_id).
It tells you
It does not tell you
Many studies ≠ strong effect. Do not “vote count”.
| Time | Task | Format |
|---|---|---|
| 14:08 | Open the pack, load the data, count studies | Alone |
| 14:13 | Exercise 1 — first evidence map (fill the ___) |
Alone |
| 14:25 | Exercise 2 — add a third dimension: organisms or validity | Pairs |
| 14:35 | 2–3 pairs show their map | All |
| Bonus | Where (world map) and when (cumulative curves) | Later |
Open meta_analysis_course.Rproj (the course kit), then td_evidence_map.R. Instructions and folded solutions: the practical web page.
Each point of this session developed further, with the same data, more pitfalls and exercises with solutions:
literaturesynthesis.github.io/notebook