summarise_by_x {ggplot2}R Documentation

Summarise a data.frame by parts

Description

Summarise a data frame by unique value of x

Usage

summarise_by_x(data, summary, ...)

Arguments

data
summary
...

Details

This function is used by stat_summary to break a data.frame into pieces, summarise each piece, and join the pieces back together, retaining original columns unaffected by the summary.

Author(s)

Hadley Wickham <h.wickham@gmail.com>


[Package ggplot2 version 0.8.2 Index]