@@ -49,6 +49,10 @@ GeomContourFilled <- ggproto("GeomContourFilled", GeomPolygon)
4949# '
5050# ' Overrides `binwidth` and `bins`. By default, this is a vector of length
5151# ' ten with [pretty()] breaks.
52+ # ' @param rule Either `"evenodd"` or `"winding"`. If polygons with holes are
53+ # ' being drawn (using the `subgroup` aesthetic) this argument defines how the
54+ # ' hole coordinates are interpreted. See the examples in [grid::pathGrob()] for
55+ # ' an explanation.
5256# ' @seealso [geom_density_2d()]: 2d density contours
5357# ' @export
5458# ' @examples
@@ -82,12 +86,15 @@ GeomContourFilled <- ggproto("GeomContourFilled", GeomPolygon)
8286geom_contour <- boilerplate(
8387 GeomContour , stat = " contour" ,
8488 bins = NULL , binwidth = NULL , breaks = NULL ,
85- lineend = " butt" , linejoin = " round" , linemitre = 10
89+ lineend = " butt" , linejoin = " round" , linemitre = 10 ,
90+ arrow = NULL , arrow.fill = NULL
8691)
8792
8893# ' @rdname geom_contour
8994# ' @export
9095geom_contour_filled <- boilerplate(
9196 GeomContourFilled , stat = " contour_filled" ,
92- bins = NULL , binwidth = NULL , breaks = NULL
97+ bins = NULL , binwidth = NULL , breaks = NULL ,
98+ rule = " evenodd" ,
99+ lineend = " butt" , linejoin = " round" , linemitre = 10
93100)
0 commit comments