-
Notifications
You must be signed in to change notification settings - Fork 16
Statistic
xuexue edited this page Jul 31, 2012
·
2 revisions
Statistics pre-processes data prior to plotting. For example, the "box" statistic calculates the quartiles, and the "count" statistics calculates the number of occurrences of each unique value.
- gg.stats.id - do not apply any statistics
- gg.stats.bin - count the number of objects per bin
- gg.stats.box - calculate quartiles and outliers to be use for a box plot
- gg.stats.count - counts the number of occurrences of each value
- gg.stats.stack - used for stacked bar charts
- gg.stats.sum - calculate the sum for each group
- gg.stats.mean - calculate the mean for each group
- gg.stats.unique - counts the number of unique value in each group
- gg.stats.ratio - normalizes each group to sum to 1, and calculate the proportion of each data point (this is useful for pie chart creation, for example)
Create a new statistics object.