Publications by pmur002

2019-02 SVG In, SVG Out

24.11.2019

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, such as plots, and exporting the result to an external SVG image with the ‘gridSVG’ package. We discuss some of the complications that can ari...

875 sym 2 img

2020-01 Visual Testing for Graphics in R

05.01.2020

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 graphical output. The goal of the ‘gdiff’ package is to support a wide range of testing scenarios, including testing graphical output between dif...

780 sym 2 img

2020-02 The Agony and the Ecstacy: Adding LuaTeX support to ‘dvir’

15.04.2020

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 fonts and font features. The image above is based on Figure 4.1 in Thomas Rahlf’s “Data Visualisation with R”. Paul Murrell Download Rela...

728 sym 2 img

2020-03 Improved Clipping in the R Graphics Engine

07.06.2020

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 perform visual difference testing. Paul Murrell Download Related To leave a comment for the author, please follow the link and comment on their ...

664 sym 4 img

2020-04 Catching up with R Graphics

13.07.2020

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 Related To leave a comment for the author, please follow the link and comment on their blog: R – Stat Tech. R-bloggers.com offers daily e-mail updates about R new...

579 sym 10 img

2020-05 Adding TikZ support to ‘dvir’

24.11.2020

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 Related To leave a comment for the author, please follow the link and comment on their blog: R – Stat Tech. R-bloggers.com offers dai...

600 sym 2 img

2020-06 Letting Go of Type 1 Fonts

22.12.2020

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 Linux releases, like Ubuntu 20.04, because of a dependence on Type 1 fonts. This report describes an update to the ‘dvir’ package, plus some ...

885 sym 2 img

2021-01 Accessing ‘grid’ from ‘ggplot2’

30.05.2021

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, grid_panel() and grid_group(), both of which create a new layer in a ‘ggplot2’ plot. The first argument to both functions is a ‘g...

972 sym R (173 sym/1 pcs) 2 img

2021-02 Groups, Compositing Operators, and Affine Transformations in R Graphics

14.11.2021

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 below shows a shear transformation being applied to a ‘ggplot2’ plot. These features are available in the development version of R (to become v...

776 sym 2 img

2021-03 Stroking and Filling Paths in R Graphics

15.11.2021

This document describes an expansion of the R graphics engine to support stroking and filling paths. Paul Murrell Download Related To leave a comment for the author, please follow the link and comment on their blog: R – Stat Tech. R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. ...

519 sym 2 img