Universal Graphics Device

A unified R graphics backend. Render R graphics fast and easy to many common file formats. Provides a thread safe 'C' interface for asynchronous rendering of R graphics.


unigd

R-CMD-check CRAN downloads Codecov test coverage

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.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("unigd")

0.2.0 by Florian Rupprecht, 8 months ago


https://github.com/nx10/unigd, https://nx10.dev/unigd/


Report a bug at https://github.com/nx10/unigd/issues


Browse source code at https://github.com/cran/unigd


Authors: Florian Rupprecht [aut, cre] (ORCID: , Kun Ren [ctb] , Tatsuya Shima [ctb] , Jeroen Ooms [ctb] , Hadley Wickham [cph] (Author of included svglite code) , Lionel Henry [cph] (Author of included svglite code) , Thomas Lin Pedersen [cph] (Author and creator of included svglite code) , T Jake Luciani [cph] (Author of included svglite code) , Matthieu Decorde [cph] (Author of included svglite code) , Vaudor Lise [cph] (Author of included svglite code) , Tony Plate [cph] (Contributor to included svglite code) , David Gohel [cph] (Contributor to included svglite code) , Yixuan Qiu [cph] (Contributor to included svglite code) , Håkon Malmedal [cph] (Contributor to included svglite code) , RStudio [cph] (Copyright holder of included svglite code) , Brett Robinson [cph] (Author of included belle library) , Google [cph] (Copyright holder of included material design icons) , Victor Zverovich [cph] (Author of included fmt library) , Andrzej Krzemienski [cph] (Author of included std::experimental::optional library)


Documentation:   PDF Manual  


GPL (>= 2) license


Imports systemfonts

Suggests testthat, xml2, fontquiver, covr, knitr, rmarkdown

Linking to cpp11, systemfonts

System requirements: Cairo (optional, for raster output), libtiff (optional, for TIFF output), libpng, zlib


Imported by httpgd.


See at CRAN