Allow stat layers to receive a sequence of positional variables
rather than only x
and y
.
aes_coord(.data, prefix)get_aes_coord(data)
aes_c(...)
A list with class uneval
. Components of the list are either
quosures or constants.
A data frame. .data
stands in for the data passed to
ggplot2::ggplot()
, while data
is expected to have been pre-processed
before being passed to a Stat*$compute_*()
function.
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.
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.
ggplot2::aes()
for standard ggplot2 aesthetic mappings.