Rasterize a grob object with magick
magickGrob(grob, ...)# S3 method for grob
magickGrob(
grob,
magick = NULL,
...,
res = NULL,
interpolate = FALSE,
name = NULL,
vp = NULL
)
# S3 method for magickGrob
magickGrob(
grob,
magick = waiver(),
...,
res = waiver(),
interpolate = waiver(),
name = waiver(),
vp = waiver()
)
A magickGrob
object.
A grob()
. Use as_grob()
to convert any
objects into a grob
.
These dots are for future extensions and must be empty.
A function (purrr-style formula is accepted) that takes an
image_read()
object as input and returns an object
compatible with as.raster()
. You can use any of
the image_*()
functions from the magick package to process the raster
image.
An integer sets the desired resolution in pixels.
A logical value indicating whether to linearly interpolate the image (the alternative is to use nearest-neighbour interpolation, which gives a more blocky result).
A character identifier.
A Grid viewport object (or NULL).