This functions generates a new set of coordinates
by subsetting a set of coordinates.
Usage
trim(x, from, to, ...)
# S3 method for grob
trim(x, from, to, rep=FALSE, ...)
# S3 method for gPath
trim(x, from, to, rep=FALSE,
strict=FALSE, grep=FALSE, global=FALSE, ...)
# S3 method for character
trim(x, from, to, rep=FALSE,
strict=FALSE, grep=FALSE, global=FALSE, ...)
Value
A new set of coordinates.
Arguments
x
A set of coordinates. Or a grob, or a gPath (or a character value)
identifying a grob that has already been drawn from which
coordinates are generated.
from
A numeric vector or a unit object describing the start
point of each subset.
to
A numeric vector or a unit object describing the end
point of each subset.
rep
A logical value indicating whether the from and
to values should be repeated to consume the
entire line.
strict, grep, global
Arguments controlling the interpretation of the gPath
(passed to grid.get).