Most aesthetics are mapped from variables found in the data. Sometimes,
however, you want to map from variables computed by the aesthetic. The
most common example of this is the height of bars in
the height does not come from a variable in the underlying data, but
is instead mapped to the
count computed by
function is a flag to ggplot2 to it that you want to use calculated
aesthetics produced by the statistic.
An aesthetic expression using variables calculated by the stat.
This replaces the older approach of surrounding the variable name with
1 2 3 4 5 6 7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.