Documentation for special variables in ggplot (..count .., .. density .. etc.)

The stats_ functions in ggplot2 create special variables, for example. stat_bin2d creates a special variable called ..count.. Where can I find the documentation listing which special variables are returned by the stat_ function?

I looked at the main pages of the ggplot2 documentation and in the online help of R. I tried to read the source code for stat_bin2d, but it uses bits of a language that I donโ€™t understand - I donโ€™t know how to get the code for StatBin2d$new(...) .

+6
source share
1 answer

Most of them are documented in the values โ€‹โ€‹section of the help pages, for example ?stat_boxplot says

Value:

  A data frame with additional columns: 

width: width boxplot

 ymin: lower whisker = smallest observation greater than or equal to lower hinge - 1.5 * IQR 

lower: lower hinge, 25% quantile

notchlower: lower edge of the notch = middle - 1.58 * IQR / sqrt (n)

medium: medium, 50% quantile

notchupper: cutting edge = average + 1.58 * IQR / sqrt (n)

upper: upper hinge, 75% quantile

 ymax: upper whisker = largest observation less than or equal to upper hinge + 1.5 * IQR 

I suggest sending error reports to those who are left without documents. There is a stat_bin2d report report for stat_bin2d , but it was closed as fixed. If you are creating a new bug report, you can refer to this.

+2
source

All Articles