geom_data: Process data for the geom.

Description Usage Details Value

Description

This method is run just prior to creating the grob, and is used to get the data into a format which requires minimal processing to be supplied to a geom. This is separated out into a separate method because a number of grobs process data in a slightly different way but otherwise inherit all other behaviours, and to make testing easier.

Usage

1
  geom_data(geom, data)

Details

geom_data is called after calc_aesthetics and add_group. It only needs to be overridden if the geom does something special with the data, such as ordering it like geom_line, or processing it like geom_path or geom_step.

Value

a list, suitable for operation with geom_data


hadley/layers documentation built on May 17, 2019, 10:42 a.m.