Software
ragg

ragg

Graphic Devices Based on AGG

C++

ragg provides high-performance graphic devices for R based on the AGG library, offering drop-in replacements for the standard PNG, JPEG, and TIFF devices in grDevices. It renders plots and graphics with improved speed and quality compared to R’s default raster devices.

The package delivers faster rendering (up to 40% faster than anti-aliased cairo), direct access to system fonts with advanced text features like right-to-left support and emoji rendering, high-quality anti-aliasing, and system-independent output that looks identical across Mac, Windows, and Linux. It also supports 16-bit output and includes a capture device for accessing rendered graphics directly as raster data in R. The package integrates with knitr and can be set as the default graphics backend in RStudio.

Contributors