Learn R Programming

unigd

A unified R graphics backend. Render R graphics fast and easy to many common file formats.

This package provides a thread-safe interface to power interactive graphics clients such as httpgd.

Features

  • Fast plotting
  • Plot resizing and history
  • Render to various image formats (SVG, PNG, PDF, EPS, ...)
  • In-memory access to rendered graphics
  • Platform independent
  • Stateless thread-safe C client API for package developers

Installation

Install unigd from CRAN:

install.packages("unigd")

Or get the latest development version from GitHub:

remotes::install_github("nx10/unigd")

See system requirements for troubleshooting.

Getting started

See the guide for more details.

Contributions welcome!

unigd is mostly written in C++, but contributions to the tests (in R) or the documentation are also always welcome!

About & License

Depends on cpp11 and systemfonts.

Much of the font handling and SVG rendering code is modified code from the excellent svglite package.

This project is licensed GPL v2.0.

It includes parts of svglite (GPL ≥ 2) and fmt (MIT).

Full copies of the license agreements used by these components are included in ./inst/licenses.

Copy Link

Version

Install

install.packages('unigd')

Monthly Downloads

2,006

Version

0.2.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Florian Rupprecht

Last Published

February 16th, 2026

Functions in unigd (0.2.0)

ugd_id

Query unigd plot IDs
ugd_info

unigd device information.
ugd_render

Render unigd plot and return it.
ugd

A unified R graphics backend.
ugd_remove

Remove a unigd plot page.
ugd_close

Close unigd device.
ugd_render_inline

Inline plot rendering.
unigd-package

unigd: Universal graphics device
ugd_test_pattern

Plot a 16-panel test pattern for evaluating graphics devices.
ugd_clear

Clear all unigd plot pages.
ugd_save_inline

Inline plot rendering to a file.
ugd_save

Render unigd plot to a file.
ugd_state

unigd device status.
ugd_renderers

unigd device renderers.