sbf_print | R Documentation |
Retries printing a ggplot object if grid errors occurs.
sbf_print(
x,
newpage = is.null(vp),
vp = NULL,
ntry = 3L,
plot = getOption("sbf.plot", TRUE)
)
x |
An object to print. |
newpage |
draw new (empty) page first? |
vp |
viewport to draw plot in |
ntry |
A positive whole number specifying the number of tries. |
plot |
A flag indicating whether or not to print the plot. |
Grid errors include the text "cannot pop the top-level viewport" or "no applicable method for 'depth'"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.