Allow stat layers to receive a sequence of positional variables
rather than only x
and y
.
Arguments
- .data, data
A data frame.
.data
stands in for the data passed toggplot2::ggplot()
, whiledata
is expected to have been pre-processed before being passed to aStat*$compute_*()
function.- prefix
A regular expression used to identify the coordinate columns of
.data
.- ...
objects to be concatenated. All
NULL
entries are dropped before method dispatch unless at the very beginning of the argument list.
Details
These functions coordinate (pun intended) the use of more than two positional
variables in plot layers. Pass multidimensional coordinates to a stat via
mapping = aes_coord(...)
and reconcile the recovered coordinates with x
and y
(which are overridden if present) in Stat*$compute_*()
; see the
StatChull source code for an example. Use aes_c()
to concatenate
aesthetic mappings.
See also
ggplot2::aes()
for standard ggplot2 aesthetic mappings.