Plots each dataset entry as a dot on a world map. Dot size is proportional
to log(n+1) and dot colour indicates pathogen. Datasets with
country = "Mixed" are excluded from the map and listed in an inset box.
Usage
create_data_map(
data = NULL,
exclude_no_n = FALSE,
default_n_log = 1.5,
alpha = 0.6,
jitter_amount = 3,
title = "Geographic distribution of delay distribution datasets"
)Arguments
- data
A data frame from
extract_dataset_summary(). IfNULL,extract_dataset_summary()is called internally.- exclude_no_n
Logical. If
TRUE, entries with missing sample size are dropped. IfFALSE(default), they appear at sizedefault_n_log.- default_n_log
Numeric. Log-scale dot size used when
nis missing.- alpha
Numeric (0–1). Point transparency.
- jitter_amount
Numeric. Maximum spatial jitter in degrees lat/lon, applied to separate overlapping points from the same country.
- title
Character. Plot title.
Value
A ggplot2::ggplot() object.
Details
For reproducible jitter, call set.seed() before this function.