26
26
# ' @inheritParams geom_point
27
27
# ' @param geom,stat Use to override the default connection between
28
28
# ' \code{geom_boxplot} and \code{stat_boxplot}.
29
- # ' @param outlier.colour,outlier.color,outlier.shape,outlier.size,outlier.stroke,outlier.alpha
29
+ # ' @param outlier.colour,outlier.color,outlier.fill,outlier. shape,outlier.size,outlier.stroke,outlier.alpha
30
30
# ' Default aesthetics for outliers. Set to \code{NULL} to inherit from the
31
31
# ' aesthetics used for the box.
32
32
# '
@@ -93,6 +93,7 @@ geom_boxplot <- function(mapping = NULL, data = NULL,
93
93
... ,
94
94
outlier.colour = NULL ,
95
95
outlier.color = NULL ,
96
+ outlier.fill = NULL ,
96
97
outlier.shape = 19 ,
97
98
outlier.size = 1.5 ,
98
99
outlier.stroke = 0.5 ,
@@ -113,6 +114,7 @@ geom_boxplot <- function(mapping = NULL, data = NULL,
113
114
inherit.aes = inherit.aes ,
114
115
params = list (
115
116
outlier.colour = outlier.color %|| % outlier.colour ,
117
+ outlier.fill = outlier.fill ,
116
118
outlier.shape = outlier.shape ,
117
119
outlier.size = outlier.size ,
118
120
outlier.stroke = outlier.stroke ,
@@ -162,7 +164,8 @@ GeomBoxplot <- ggproto("GeomBoxplot", Geom,
162
164
},
163
165
164
166
draw_group = function (data , panel_scales , coord , fatten = 2 ,
165
- outlier.colour = NULL , outlier.shape = 19 ,
167
+ outlier.colour = NULL , outlier.fill = NULL ,
168
+ outlier.shape = 19 ,
166
169
outlier.size = 1.5 , outlier.stroke = 0.5 ,
167
170
outlier.alpha = NULL ,
168
171
notch = FALSE , notchwidth = 0.5 , varwidth = FALSE ) {
@@ -205,6 +208,7 @@ GeomBoxplot <- ggproto("GeomBoxplot", Geom,
205
208
y = data $ outliers [[1 ]],
206
209
x = data $ x [1 ],
207
210
colour = outlier.colour %|| % data $ colour [1 ],
211
+ fill = outlier.fill %|| % data $ fill [1 ],
208
212
shape = outlier.shape %|| % data $ shape [1 ],
209
213
size = outlier.size %|| % data $ size [1 ],
210
214
stroke = outlier.stroke %|| % data $ stroke [1 ],
0 commit comments