Graphical Output in Terminals
Overview
Defines a graphics device and functions for graphical output in terminal emulators that support graphical output. Currently terminals that support the Terminal Graphics Protocol (https://sw.kovidgoyal.net/kitty/graphics-protocol/) and terminal supporting Sixel (https://en.wikipedia.org/wiki/Sixel) are supported.
New Features
- When the size of the terminal changes new plots (e.g. when calling implicitly or explicitly
new.plot) will rescale to follow the size of the new terminal. This happens only when the width and height of the plot were *not* explicitly set. Note that after resizing the terminal updates to a new plot will not resize the plot.
Bug fixes
- Support for Terminal Graphics Protocol and Sixel was not properly detected in Vim and NVim terminals. In NVim this even caused the terminal to hang. Code now checks if it is running in such a terminal. Graphics output is not supported in these terminals, but at least now this is detected properly.
- Sixel support is now detected when running in tmux for terminals that support sixel.
Show all changes in 0.3.0Hide the rest of the changes in 0.3.0
term_palette()no longer gives an error and returns the default palette, when run in kitty with remote control disabled.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- WARNING12 OK, 1 WARNING2026-06-08
- OK13 OK2026-05-10
Show 4 earlier changesHide 4 earlier changes
- WARNING12 OK, 1 WARNING2026-05-09
- OK14 OK2026-04-22
- ERROR13 OK, 1 ERROR2026-04-18
- OK14 OK2026-03-10
Documentation
- Help pages
- 18
- Examples that run
- 100%8 run in a plain check
- Exported functions with examples
- 44%
- Documented parameters
- 98%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 0%
- Median days to close, 50 most recently updated closed issues
- GitHub only
- Median days to close, 50 most recently updated closed PRs
- GitHub only
Repository codeberg.org/djvanderlaan/terminalgraphics is linked, but repository-practices checks have not run for it yet. Checks are GitHub-only for now.
Dependencies
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.3.0Latest
- RR 4.6.0 released · 2026-04-24
- 0.2.12025-11-26 · diff ↗
- 0.2.0
- 0.1.12025-08-28
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-08-28
- Total releases
- 4 / 1 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 23 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("terminalgraphics")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.