mellio_capture: Capture the current graphics device and open it in Mellio

View source: R/mellio-capture.R

mellio_captureR Documentation

Capture the current graphics device and open it in Mellio

Description

Convenience wrapper for base R plots. Call after producing a base plot with plot(), hist(), barplot(), or another graphics function.

Usage

mellio_capture(...)

Arguments

...

Arguments passed to mellio_open(), such as title, number, note, and browse.

Value

Invisibly, the Mellio URL string.

See Also

Other R bridge: mellio_addin_send(), mellio_compare(), mellio_open(), mellio_payload(), mellio_to_json(), print.mellio_payload()

Examples


if (interactive()) {
  plot(mtcars$wt, mtcars$mpg)
  mellio_capture(
    title = "Fuel efficiency by weight",
    number = 1,
    browse = FALSE
  )
}


mellio documentation built on Aug. 30, 2026, 1:06 a.m.