Description Usage Arguments Value Author(s) Examples
View source: R/for_presentation.R
This function adjusts the aspect ratio and default font size of a plot to improve readability when including figures in presentations.
1 | for_presentation(plot, aspect_ratio = 0.5, font_increase = 1.5)
|
plot |
The ggplot2 object to be adjusted. |
aspect_ratio |
The desired ratio between the height and width of the plot, defaults to 0.5. |
font_increase |
The amount to increase the font size by, default to 1.5. |
A plot adjusted for presentation.
Maria Bekker-Nielsen Dunbar
Sam Abbott
1 2 3 4 5 6 | plot <- plot_tb_burden_summary(
countries = "United Kingdom",
compare_all_regions = FALSE, compare_to_region = TRUE
)
plot # Original
for_presentation(plot) # After adjustments
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.