aesply: Evaluate aesthetics by group

Description Usage Arguments Value

Description

aesply splits a data frame into pieces, evaluates a list of aesthetics within each piece, and combines the results into a new data frame. Each aesthetic in the list must return either a single value per piece or a single value per row in the piece.

Usage

1
  aesply(data, .var, aesthetics)

Arguments

data

a data frame

.vars

a vector of variables to split data by. Each element should be the name of a variable in data saved as a character string.

aesthetics

an object of class uneval, usually the output of aes

Value

a data frame


garrettgman/ggplyr documentation built on May 16, 2019, 5:38 p.m.