affine transformation feature
Closed this issue · 1 comments
trevorld commented
- In the comments to r-lib/pkgdown#2314 @hadley asked me to open an issue here.
- The affine transformation feature was introduced in R 4.2. Here is an article about it by Paul Murrell: https://www.stat.auckland.ac.nz/~paul/Reports/GraphicsEngine/groups/groups.html
- My packages
{affiner}
and{piecepackr}
use the affine transformation feature (the latter since April, 2022) and{pkgdown}
won't render all of my examples that use this feature because currently{pkgdown}
always uses{ragg}
to record the graphics and{ragg}
doesn't support this feature yet. - Here is an example from
{piecepackr}
using the affine transformation feature with R's Cairo devices:
library("piecepackr")
envir <- game_systems()
dice <- c("d4", "numeral", "d8", "d10_percentile", "d10", "d12", "d20")
cfg <- paste0("dice_", dice)
grid.piece("die_face", suit = c(1:6, 1), rank = 1:7,
cfg = cfg, envir = envir, x = 1:7, y = 1,
default.units = "in", op_scale = 0.5)
trevorld commented
A quick Github search suggests that at least {ggblend}
and {xdvir}
also use this feature.