orb_draw: Draw a plot on the current graphics device

View source: R/render_grid.R

orb_drawR Documentation

Draw a plot on the current graphics device

Description

Renders through R's grid graphics, so the plot appears on whatever device is active. orb_save() is usually more convenient.

Usage

orb_draw(plot, width = 820, height = 520)

Arguments

plot

An orb_spec object.

width, height

Logical size in pixels.

Value

NULL, invisibly. Called for its side effect.

Examples

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)

orbis documentation built on Aug. 5, 2026, 9:08 a.m.