
Export a network plot at explicit publication dimensions
network_plot_export.RdExport a network plot at explicit publication dimensions
Examples
dat <- data.frame(study = 1:6, a = rep(c("A", "A", "B"), 2),
b = rep(c("B", "C", "C"), 2),
yi = c(.2, .5, .3, .3, .6, .4), vi = .04)
fit <- network_meta(dat, "study", "a", "b", "yi", "vi")
path <- tempfile(fileext = ".pdf")
network_plot_export(function() network_rank_plot(fit, "higher", nsim = 500), path)
file.exists(path)
#> [1] TRUE
unlink(path)