gt_vsparkline() renders a list-column of numeric vectors as a per-row
vsparkline(), embedded as inline SVG in a gt::gt() table — so a gt table
(with all of gt's formatting and theming) gains a vellum sparkline column.
Needs the gt package, and HTML output (inline SVG is not embedded by gt's
LaTeX / Word backends).
Arguments
- gt_object
A
gt::gt()object.- column
The list-column to render (bare name or string).
- type
Sparkline type:
"line"(default),"bar", or"winloss".- ...
Further
vsparkline()arguments (e.g.color,points).- width, height, units
Sparkline size (default
30 x 8mm).
Details
The vectors are recovered from the gt object's data in its current row order;
apply gt_vsparkline() before any gt row reordering / grouping.
