Support for gradient fills, pattern fills, clipping paths and masks was added to the R graphics engine in R version 4.1.0. The development version of R (likely to become R version 4.2.0) contains support for several more graphical tools: groups, compositing operators, and affine transformations, plus some tweaks to paths and masks. An R-level interface for these new features has been added to the ‘grid’ graphics package. library(grid) The following code demonstrates drawing a group with the new …