| orb_draw | R Documentation |
Renders through R's grid graphics, so the plot appears on whatever device is
active. orb_save() is usually more convenient.
orb_draw(plot, width = 820, height = 520)
plot |
An |
width, height |
Logical size in pixels. |
NULL, invisibly. Called for its side effect.
p <- orb(mtcars, x = wt, y = mpg) + orb_points()
f <- tempfile(fileext = ".png")
grDevices::png(f, width = 820, height = 520)
orb_draw(p)
grDevices::dev.off()
unlink(f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.