draw_grob | R Documentation |
grob
Draw grob on device page.
draw_grob(grob, newpage = TRUE, vp = NULL)
grob |
( |
newpage |
( |
vp |
( |
A grob
.
library(dplyr)
library(grid)
rect <- rectGrob(width = grid::unit(0.5, "npc"), height = grid::unit(0.5, "npc"))
rect %>% draw_grob(vp = grid::viewport(angle = 45))
num <- lapply(1:10, textGrob)
num %>%
arrange_grobs(grobs = .) %>%
draw_grob()
showViewport()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.