2018-12 MetaPost Three Ways
This report describes three different approaches to communicating between R and MetaPost: importing the PostScript output from MetaPost with the ‘grImport’ package; calling the mpost program to solve...
View Article2018-13 Rendering HTML Content in R Graphics
This report describes several R packages that allow HTML content to be rendered as part of an R plot. The core package is called ‘layoutEngine’, but that package requires a “backend” package to perform...
View Article2019-01 A Geometry Engine Interface for ‘grid’
This report describes a new function in ‘grid’ called grobCoords and a new package called ‘gridGeometry’ that combines grobCoords with the ‘polyclip’ package to provide a geometry engine interface for...
View Article2019-02 SVG In, SVG Out
This report discusses how to work with complex SVG images in R. We look at importing an external SVG image into R with the ‘grImport2’ package, integrating the imported image with other R graphics,...
View Article2020-01 Visual Testing for Graphics in R
This report describes the ‘gdiff’ package for R, which provides tools for performing visual tests on graphical output. Visual testing is essential for checking that code is producing the correct...
View Article2020-02 The Agony and the Ecstacy: Adding LuaTeX support to ‘dvir’
This report describes an update to the R package ‘dvir’ to add support for the LuaTeX engine. The immediate advantage of this support is the ability to draw typeset text in R with a wider variety of...
View Article2020-03 Improved Clipping in the R Graphics Engine
This report describes improvements to clipping in the R graphics engine. These changes will be of particular interest to maintainers of R graphics device packages and to maintainers of R packages that...
View Article2020-04 Catching up with R Graphics
This document describes an expansion of the R graphics engine to support a number of new graphical features: gradients, patterns, masks, and clipping paths. Paul Murrell Download
View Article2020-05 Adding TikZ support to ‘dvir’
This report describes an update to the R package ‘dvir’ to add support for the TikZ graphics package. This allows R users to make use of TikZ drawing capabilities within R graphics. Paul Murrell Download
View Article2020-06 Letting Go of Type 1 Fonts
The ‘dvir’ package for R is limited in that it is only known to work on an (Ubuntu) Linux distribution with (at least) a full TeX installation. Unfortunately, not even that is true for recent stable...
View Article2021-01 Accessing ‘grid’ from ‘ggplot2’
This report describes the ‘gggrid’ package, which provides a convenient interface for making use of raw ‘grid’ functions in combination with ‘ggplot2’. The ‘gggrid’ package provides two functions,...
View Article2021-02 Groups, Compositing Operators, and Affine Transformations in R Graphics
This document describes an expansion of the R graphics engine to support a number of new graphical features: isolated groups, compositing operators, and affine transformations. For example, the image...
View Article2021-03 Stroking and Filling Paths in R Graphics
This document describes an expansion of the R graphics engine to support stroking and filling paths. Paul Murrell Download
View Article2021-04 Luminance Masks in R Graphics
This document describes an extension of the support for masks in R graphics to allow luminance masks as well as alpha masks. Paul Murrell Download
View Article2022-01 Vectorised Pattern Fills in R Graphics
This document describes an extension of the support for pattern fills in R graphics (linear gradients, radial gradients, and tiling patterns) to allow multiple pattern fills to be specified at once...
View Article2022-02 Constructive Geometry for Complex Grobs
This document describes developments in the grobCoords() function in the R package ‘grid’, plus improvements to the ‘gridGeometry’ package that makes use of the grobCoords() function. Paul Murrell...
View Article2022-03 Offsetting Lines and Polygons in ‘grid’
This document describes new functions in the ‘gridGeometry’ package for R that generate offset regions and Minkowski Sums for lines and polygons. Jack Wong and Paul Murrell Download
View Article2022-04 Constructive Solid Geometry and Function Representation in R
The HyperFun Project provides a language and interpreter for describing 3D scenes using Function Representation and Constructive Solid Geometry. This document describes the R package ‘hyperfun’, which...
View Article2023-01 Rendering Typeset Glyphs in R Graphics
This document describes a new feature in the R graphics engine to support rendering typeset glyphs. This provides a basis for developing improved text rendering in R graphics. Paul Murrell, Thomas Lin...
View Article2023-02 Porter-Duff Compositing Operators in R Graphics
This document describes an upate to the behaviour of Porter-Duff compositing operators in R graphics. Paul Murrell, Thomas Lin Pedersen, and Panagiotis Skintzos. Download
View Article