File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
# ' Summarise y values at every unique x.
2
2
# '
3
3
# ' \code{stat_summary} allows for tremendous flexibilty in the specification
4
- # ' of summary functions. The summary function can either operate on a data
5
- # ' frame (with argument name \code{fun.data}) or on a vector (\code{fun.y},
6
- # ' \code{fun.ymax}, \code{fun.ymin}).
4
+ # ' of summary functions. The summary function can either supply individual
5
+ # ' summary functions for each of y, ymin and ymax (with \code{fun.y},
6
+ # ' \code{fun.ymax}, \code{fun.ymin}), or return a data frame containing any
7
+ # ' number of aesthetiics with with \code{fun.data}. All summary functions
8
+ # ' are called with a single vector of values, \code{x}.
7
9
# '
8
10
# ' A simple vector function is easiest to work with as you can return a single
9
11
# ' number, but is somewhat less flexible. If your summary function operates
Original file line number Diff line number Diff line change @@ -36,9 +36,11 @@ a data.frame with additional columns:
36
36
}
37
37
\description {
38
38
\code {stat_summary } allows for tremendous flexibilty in the specification
39
- of summary functions. The summary function can either operate on a data
40
- frame (with argument name \code {fun.data }) or on a vector (\code {fun.y },
41
- \code {fun.ymax }, \code {fun.ymin }).
39
+ of summary functions. The summary function can either supply individual
40
+ summary functions for each of y , ymin and ymax (with \code {fun.y },
41
+ \code {fun.ymax }, \code {fun.ymin }), or return a data frame containing any
42
+ number of aesthetiics with with \code {fun.data }. All summary functions
43
+ are called with a single vector of values , \code {x }.
42
44
}
43
45
\details {
44
46
A simple vector function is easiest to work with as you can return a single
You can’t perform that action at this time.
0 commit comments