si_preview | R Documentation |
Saves and launches a temporary file to see how the sizing and layout of all aesthetics, e.g. font size, shape size, etc, look when exported from the IDE preview.
si_preview(scale = 1, width = 10, height = 5.625, dpi = 320, ...)
scale |
Multiplicative scaling factor. |
width |
plot width in inches, default = 10 |
height |
plot height in inches, default = 5.625 |
dpi |
plot resolution |
... |
additional arguments to that pass to ggsave |
saves and previews a png output
Other saving:
si_clear_preview()
,
si_save()
## Not run:
library(systemfonts)
hts %>%
dplyr::filter(period_type == "results",
indicator == "HTS_TST_POS") %>%
ggplot2::ggplot(aes(period, value)) +
ggplot2::geom_col() +
ggplot2::facet_wrap(~forcats::fct_reorder2(modality, period, value)) +
ggplot2::labs(x = NULL, y = NULL,
title = "Saturn experienced a drop in Index testing in FY50Q1" %>% toupper,
subtitle = "Saturn, folks!",
caption = "Source: FY50Q1i MSD") +
si_style_nolines()
si_preview()
si_clear_preview()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.