13.5 Stats
There are several stat_...()
functions used to transform the data by summarizing information.
For example the stat_ecdf()
compute the empirical cumulative distribution plot
Here we use stat_summary()
function for *categorical data**
13.5.1 Generated variables from the stat_...()
functions
stat
takes a data frame as input and returns a data frame as output.
Here we use the diamonds
dataset, to see hoe the after_stat()
can be applied