ggpacket_call {ggpackets}R Documentation

The function used when a ggpacket is called as a function

Description

The function used when a ggpacket is called as a function

Usage

ggpacket_call(mapping = NULL, data = NULL, ..., .id = character(0L))

Arguments

mapping

The aesthetic mapping to use as a basis for all layers within the ggpacket. Layer-specific mappings will update the value of the mapping, and assigning ..reset.. to any aesthetic field will return the propegated aesthetic mapping to a default, unmapped state for that layer.

data

The data argument to use for all layers within the ggpacket

...

additional arguments passed to all bundled ggplot layers, and will be overwritten by layer-specific arguments if provided.

.id

an optional identifier tag for the ggpacket, used for filtering arguments and aesthetics that are propegated into the contained ggplot layers.

Value

A new ggpacket object with the new defaults applied


[Package ggpackets version 0.2.1 Index]