Exports a forestplot object to both PNG and PDF files using grid graphics devices.
Details
Because forestplot uses grid graphics (not ggplot2),
ggsave() is not compatible. This function opens graphics
devices manually and prints the plot object.
Two files are created:
filename.pngHigh-resolution raster image
filename.pdfVector-based PDF
Examples
if (FALSE) { # \dontrun{
book_summary <- summarize_chapter_scores(
toy_sim_results,
aggregate_level = "book"
)
forest_plot <- plot_forest_books(book_summary, xlab = "Delta gap")
save_forest_plot(forest_plot, tempfile("nalanda-forest"))
} # }
