gapply {directlabels} | R Documentation |
gapply
Description
apply a Positioning Method to every group. works like ddply from
plyr package, but the grouping column is always called groups
, and
the Positioning Method is not necessarily a function (but can be).
Usage
gapply(d, method, ...,
groups = "groups")
Arguments
d |
data frame with column |
method |
Positioning Method to apply to every group separately. |
... |
additional arguments, passed to Positioning Methods. |
groups |
can also be useful for piece column. |
Value
data frame of results after applying FUN to each group in d
.
Author(s)
Toby Dylan Hocking <toby.hocking@r-project.org> [aut, cre] (ORCID: <https://orcid.org/0000-0002-3146-0865>)
[Package directlabels version 2025.6.24 Index]