
Package index
Building a plot
Start a plot from a data frame, an sf object, or an igraph graph, then render it or write it to a file.
-
vplot() - Start a plot specification
-
vgraph() - Start a graph (network) plot
-
vdendrogram() - Dendrogram from a clustering
-
vsankey()mark_sankey() - Sankey (flow) diagram
-
vchord()mark_chord() - Chord diagram
-
vhierarchy()mark_hierarchy() - Hierarchy diagrams: sunburst, icicle, treemap, circle-pack
-
vvenn() - Venn / Euler diagrams
-
vwaffle() - Waffle chart
-
vsparkline() - Sparklines — tiny word-sized charts
-
vtable() - Tables with sparkline columns
-
gt_vsparkline() - Add a vellumplot sparkline column to a
gttable -
render_plot() - Render a plot to a file
-
plot_svg() - Render a plot to a self-contained SVG string
-
plot_data_uri() - Encode a plot as a data URI
-
pdf_pages() - Write a multi-page PDF
-
render_all() - Render many plots to separate files, in parallel
-
PlotSpec() - The plot specification
-
mark_point()mark_line()mark_rule()mark_bar() - Add marks to a plot
-
mark_count() - Count overlapping points
-
mark_area()mark_ribbon()mark_step() - Area, ribbon, and step marks
-
mark_segment()mark_curve()mark_spoke() - Segment, curve and spoke marks
-
mark_polygon()mark_path() - Polygon and path marks
-
mark_rect() - Rectangle mark
-
mark_abline()mark_function() - Reference lines and function curves
-
mark_boxplot()mark_errorbar()mark_linerange()mark_summary()mark_pointrange()mark_crossbar() - Boxplot, error bar, and summary marks
-
mark_signif() - Significance brackets
-
mark_violin()mark_ridgeline()mark_dotplot() - Density-shape marks
-
mark_histogram()mark_freqpoly()mark_smooth() - Statistical marks
-
mark_ecdf()mark_rug()mark_qq()mark_qq_line() - Distribution marks
-
mark_ellipse()mark_hull() - Group summary regions
-
mark_halfeye()mark_interval() - Uncertainty marks (slab + interval)
-
mark_raincloud() - Raincloud plot
-
mark_tile()mark_raster()mark_bin2d()mark_density()mark_hex() - Heatmap marks
-
mark_contour()mark_contour_filled() - 2-D density contours
-
mark_density_2d()mark_density_2d_filled() - 2-D density estimate
-
mark_quantile() - Quantile regression lines
-
mark_text()mark_label() - Text marks
-
mark_series_label() - Direct series labels
-
mark_outlier_label() - Label the outliers
-
mark_text_path() - Text set along a path
-
mark_pie()mark_donut() - Pie and donut charts
-
mark_image() - Draw images at data points
-
mark_datashade() - Datashade a large point cloud
-
mark_sf() - Draw simple-feature (sf) geometries
-
mark_sf_label() - Label sf features at their interior point
-
mark_scalebar()mark_compass() - Map decorations
-
mark_edges()mark_edge_bundle()mark_flow_map()mark_nodes()mark_node_text()mark_edge_text()mark_node_hull()mark_node_pie() - Network (graph) marks
-
scale_edge_width() - Edge-width scale
-
scale_edge_color()scale_edge_colour()scale_edge_alpha()scale_edge_linetype() - Edge colour / alpha / line-type scales
-
scale_x_continuous()scale_y_continuous()scale_x_log10()scale_x_sqrt()scale_x_reverse()scale_y_log10()scale_y_sqrt()scale_y_reverse()scale_x_discrete()scale_y_discrete() - Position scales
-
scale_x_binned()scale_y_binned() - Binned position scales
-
scale_x_date()scale_y_date()scale_x_datetime()scale_y_datetime()scale_x_time()scale_y_time() - Date and time position scales
-
scale_color_continuous()scale_color_discrete()scale_color_manual()scale_color_gradient()scale_color_gradient2()scale_fill_continuous()scale_color_gradientn()scale_fill_gradientn()scale_colour_gradientn()scale_fill_discrete()scale_fill_manual()scale_fill_gradient()scale_fill_gradient2()scale_colour_continuous()scale_colour_discrete()scale_colour_manual()scale_colour_gradient()scale_colour_gradient2() - Colour scales
-
scale_color_viridis_c()scale_color_viridis_d()scale_fill_viridis_c()scale_fill_viridis_d()scale_color_brewer()scale_fill_brewer()scale_color_distiller()scale_fill_distiller()scale_colour_viridis_c()scale_colour_viridis_d()scale_colour_brewer()scale_colour_distiller() - Viridis and ColorBrewer scales
-
scale_color_hue()scale_colour_hue()scale_fill_hue()scale_color_grey()scale_colour_grey()scale_fill_grey()scale_color_ordinal()scale_colour_ordinal()scale_fill_ordinal() - Hue, grey and ordinal colour scales
-
scale_fill_binned()scale_color_binned()scale_color_steps()scale_colour_steps()scale_fill_steps()scale_color_steps2()scale_color_stepsn()scale_color_fermenter()scale_color_viridis_b()scale_fill_steps2()scale_fill_stepsn()scale_fill_fermenter()scale_fill_viridis_b()scale_colour_steps2()scale_colour_stepsn()scale_colour_fermenter()scale_colour_viridis_b() - Binned (classed) colour scales
-
scale_fill_bivariate()scale_color_bivariate()scale_colour_bivariate() - Bivariate colour scales
-
bi_class() - Classify two variables for a bivariate map
-
bi_pal() - Bivariate palettes
-
scale_shape()scale_shape_manual()scale_shape_discrete() - Shape scale
-
scale_pattern() - Pattern (texture) scale
-
scale_size()scale_size_area()scale_size_continuous()scale_radius()scale_size_binned()scale_size_manual()scale_size_discrete()scale_size_ordinal() - Size scale
-
scale_linewidth()scale_linewidth_continuous() - Line-width scale
-
scale_alpha()scale_alpha_continuous()scale_alpha_manual()scale_alpha_discrete()scale_alpha_ordinal() - Alpha (opacity) scale
-
scale_linetype()scale_linetype_manual()scale_linetype_discrete() - Line-type scale
-
scale_color_identity()scale_fill_identity()scale_colour_identity()scale_size_identity()scale_shape_identity()scale_alpha_identity()scale_linetype_identity() - Identity scales
-
lims()xlim()ylim() - Set scale limits with a shortcut
-
sec_axis()dup_axis() - Secondary axes
-
guides()guide_none()guide_legend()guide_colourbar()guide_colorbar()guide_coloursteps()guide_colorsteps() - Control a scale's legend
-
guide_axis()guide_axis_logticks() - Axis guide
-
guide_bins() - Binned legend
-
guide_bivariate() - A 2-D legend for a bivariate scale
-
resolve_scale() - Resolve scales as shared or independent across panels
-
after_stat() - Map an aesthetic to a statistic computed by a stat
-
coord_cartesian()coord_flip()coord_fixed()coord_equal() - Coordinate systems
-
coord_trans() - Transformed coordinate system
-
coord_polar()coord_radial() - Polar coordinates
-
coord_sf() - Map coordinate system
-
facet_wrap()facet_grid() - Facet a plot into a grid of panels
-
label_value()label_both()label_parsed()label_wrap_gen()as_labeller() - Facet strip labellers
-
add_marginal() - Add marginal distributions to a plot
-
position_nudge()position_jitter()position_dodge()position_dodge2()position_stack()position_fill()position_sina()position_jitterdodge() - Position adjustments
-
concat()wrap_plots()hconcat()vconcat() - Arrange plots side by side
-
inset() - Overlay a plot as an inset
-
plot_spacer() - Reserve an empty cell in a composition
-
area() - Define a layout area for
design = -
repeat_() - Repeat a view across fields
-
compose_annotation() - Annotate a composition
-
theme_gray()theme_minimal()theme_bw()theme_classic()theme_void()theme_light()theme_dark()theme_linedraw()theme_cyberpunk()theme()set_theme() - Plot themes
-
theme_sketch() - Hand-drawn plot theme
-
element_text()element_line()element_rect()element_blank() - Theme elements
-
element_geom() - Default mark colours of a theme
-
rel() - Relative sizing
-
labs() - Set plot titles and axis/legend labels
-
annotate() - Add a one-off annotation
-
md - Rich-text labels
-
texplotmath - Math labels
Layer effects
Glow, shadow, outline, motion trails, hand-drawn sketching, and gradient / pattern fills.
-
glow() - Neon glow layer effect
-
shadow() - Shadow layer effect
-
outline() - Outline (halo) layer effect
-
motion()echo() - Motion-trail layer effects
-
sketch - Hand-drawn ("sketch") rendering
-
gradientslinear_gradientradial_gradient - Gradient fill paints
-
pattern_stripe()pattern_crosshatch()pattern_grid()pattern_dot()pattern_checker() - Pattern (hatch) fills
-
pattern_hatch() - Crisp vector hatch fill
-
vl_pattern - Custom tiling-pattern fill
-
clip_to()clip_layer()set_mask() - Clip or mask a plot to a geometry
Interactivity
Declare interactions as part of the plot — selections bound to gestures, conditional encodings, filters, and scale-domain binds. Inert on a static render; enacted by a host such as vellumwidget.
-
select_point() - Declare an interactive selection
-
select_interval() - Declare an interval (brush) selection
-
select_neighbours() - Highlight a node's graph neighbourhood
-
condition() - Conditional encoding: style by selection membership
-
add_selection() - Register a free-standing selection on a plot
-
filter_by() - Filter a view by a selection
-
bind_scale() - Bind a panel's view to a selection (overview + detail)
-
inspect_source() - Inspect the data behind a clicked element (click-to-source)
-
interaction_model() - The interaction model of a compiled plot
Animation
Non-reactive keyframe animation: compile a plot into one keyframe per state, train the scales once over all states and freeze them, then tween and encode the frames (GIF / APNG) in vellum’s parallel Rust backend.
-
transition_states() - Animate a plot across the states of a variable
-
transition_time() - Animate a plot along a continuous time
-
transition_reveal() - Reveal a plot progressively along a variable
-
ease_aes() - Set the easing of an animation's frames
-
animate() - Build a keyframe animation from a plot
-
anim_save() - Write a keyframe animation to a file
-
anim_frame() - Save one frame of an animation as a still image
Accessibility and provenance
Attach a text alternative for screen readers, trace each drawn element back to its data, or verify a figure against the data it was drawn from.
-
plot_alt() - Text alternative (alt text) for a plot
-
plot_lint() - Lint a plot for legibility and accessibility problems
-
plot_provenance() - Inspect the compiled-scene provenance of a plot
-
provenance_join() - Join a plot's provenance to its rendered geometry
-
provenance_payload() - A widget-ready provenance payload (click-to-source)
-
plot_manifest() - A reproducibility manifest for a plot
-
plot_verify() - Verify a rendered figure against its data
Specs, agents, and interoperability
Serialize a plot to a portable spec (and back), generate and validate plots from an LLM / MCP agent, and translate to and from Vega-Lite.
-
as_spec()from_spec() - Serialize a plot to a plain spec (and back)
-
spec_to_json()spec_from_json() - Serialize a plot to / from a JSON spec string
-
spec_schema() - The vellumplot spec JSON Schema
-
spec_fields() - Summarise a data frame's fields for a model
-
spec_diagnose()vplot_from_spec() - Diagnose a spec against its data
-
vplot_ask() - Generate a plot from a natural-language request
-
mcp_serve() - Run the vellumplot MCP server
-
spec_to_vegalite()spec_from_vegalite() - Convert between a vellumplot spec and a Vega-Lite specification
-
vellumplotvellumplot-package - vellumplot: A Grammar of Graphics on the 'vellum' Backend