@@ -269,8 +269,13 @@ GeomRectMargin <- ggplot2::ggproto(
269269 grid :: gTree(children = do.call(grid :: gList , rugs ))
270270 },
271271 optional_aes = c(" x" , " y" , " xmin" , " xmax" , " ymin" , " ymax" ),
272- default_aes = ggplot2 :: aes(colour = NA , fill = " grey35" ,
273- linewidth = 0.5 , linetype = 1 , alpha = NA ),
272+ default_aes = aes(
273+ colour = from_theme(colour %|| % NA ),
274+ fill = from_theme(fill %|| % col_mix(ink , paper , 0.35 )),
275+ linewidth = from_theme(borderwidth ),
276+ linetype = from_theme(bordertype ),
277+ alpha = NA
278+ ),
274279 draw_key = ggplot2 :: draw_key_polygon
275280)
276281
@@ -291,8 +296,14 @@ GeomTileMargin <- ggplot2::ggproto(
291296 ymin = y - height / 2 , ymax = y + height / 2 , height = NULL
292297 )
293298 },
294- default_aes = ggplot2 :: aes(fill = " grey20" , colour = NA ,
295- linewidth = 0.1 , linetype = 1 ,
296- alpha = NA , width = NA , height = NA ),
299+ default_aes = aes(
300+ fill = from_theme(fill %|| % col_mix(ink , paper , 0.2 )),
301+ colour = from_theme(colour %|| % NA ),
302+ linewidth = from_theme(borderwidth / 5 ),
303+ linetype = from_theme(bordertype ),
304+ alpha = NA ,
305+ width = NA ,
306+ height = NA
307+ ),
297308 draw_key = ggplot2 :: draw_key_polygon
298309)
0 commit comments