on-internet
← Community

ggpattern override aes in legend not working

Stack Overflow ·

I was trying to change the legend keys in a geom_col_pattern() plot from the default dark gray to a cleaner white. However, for some reason override.aes seems not to be working; I was following the example posted here for clarity but it isn't affecting the legend of interest... I resorted to change the key_glyph but that has the unwanted effect of removing the stripes from the technology legend, while also not fixing the problem with the background/fill. dput() eval <- structure(list(variant_type = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 3L, 3L, 1L, 1L, 1L,

Comments

Sign in or sign up to comment and upvote.

No comments yet.