p <- vplot(mtcars, width = 7, height = 4.2) |>
mark_point(x = wt, y = mpg, color = hp, size = 2.4) |>
mark_smooth(x = wt, y = mpg, method = "lm", se = TRUE) |>
scale_color_continuous() |>
labs(
title = "Weight vs. fuel economy",
x = "weight (1000 lbs)", y = "miles per gallon", color = "hp"
) |>
theme_minimal()vellum gallery
The parchment, the pen, and the annotation revealed on the page.
A showcase of what you can draw with the vellum graphics ecosystem in R: a Rust-backed rendering backend, a pipe-first grammar of graphics, and self-contained interactive HTML widgets.
The ecosystem
vellum
the parchment
A grid-like low-level graphics system whose scene graph, layout engine, and PNG/SVG/PDF rendering all run in a Rust backend.
vellumplot
the pen
A declarative, pipe-first grammar of graphics that compiles an inspectable plot spec into a vellum scene.
vellumwidget
the annotation
Turns any vellum scene into a self-contained interactive HTML widget you can hover, select, brush, and zoom, all in the browser with no server.
A taste
A data frame, a few marks, and a trained scale make a whole plot.
See the rest in the gallery.




