Publications by pmur002
2018-04 Extreme Makeover: R Graphics Edition
This report describes a complex R graphics customisation example using functions from the ‘grid’ and ‘gridGraphics’ packages and introduces two new functions in ‘grid’: deviceLoc and deviceDim. Paul Murrell Download Related To leave a comment for the author, please follow the link and comment on their blog: R – Stat Tech. R-blo...
612 sym
2018-05 Selective Raster Graphics
This report explores ways to render specific components of an R plot in raster format, when the overall format of the plot is vector. For example, we demonstrate ways to draw raster data symbols within a PDF scatter plot. A general solution is provided by the grid.rasterize function from the R package ‘rasterize’. Paul Murrell Download Rela...
734 sym
2018-06 Rasterizing Chromatograms
This report describes an application of the ‘rasterize’ package for R. We rasterize (just) the line segments of two chromatograms in order to render one semi-transparently over the other. This also demonstrates, more generally, the value of having access to advanced graphical techniques within statistical graphics software. Paul Murrell Down...
744 sym
2018-07 Echoes of the Future
This report discusses ways to combine graphics output from the ‘graphics’ package and the ‘grid’ package in R and introduces a new function echoGrob in the ‘gridGraphics’ package. 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 offe...
598 sym
2018-08 Revisiting Mathematical Equations in R: The ‘dvir’ package
This report describes an R package called ‘dvir’ that aims to use TeX as a layout engine, but performs all rendering within R. The package reads DVI files that are produced from TeX files and renders the content using the R package ‘grid’. Paul Murrell Download Related To leave a comment for the author, please follow the link and comme...
658 sym
2018-09 Importing General-Purpose Graphics in R
This report discusses some problems that can arise when attempting to import PostScript images into R, when the PostScript image contains coordinate transformations that skew the image. There is a description of some new features in the ‘grImport’ package for R that allow these sorts of images to be imported into R successfully. Paul Murrell...
749 sym
2018-11 Variable-Width Bezier Splines in R
This report describes support for a new type of variable-width line in the ‘vwline’ package for R that is based on Bezier curves. There is also a new function for specifying the width of a variable-width line based on Bezier curves and there is a new linejoin and lineend style, called “extend”, that is available when both the line and the...
894 sym
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 MetaPost paths with the ‘metapost’ package; and calling the mplib library to solve MetaPost paths with the ‘mplib’ package. Paul Murrel...
742 sym
2018-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 HTML layout calculations. Three example backends are demonstrated: ‘layoutEngineCSSBox’, ‘layoutEnginePhantomJS’, and ‘layoutEng...
820 sym
2019-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 ‘grid’. Paul Murrell Download Related To leave a comment for the author, please follow the link and comment on their blog: R �...
627 sym