You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.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)