I have a simple plot:
library(ggplot2)
ggplot(mtcars, aes(mpg, disp, fill = "fill")) +
geom_violin(aes(linetype = "pattern"),
key_glyph = draw_key_path)
Created on 2021-11-08 by the reprex package (v0.3.0)
How can I change the legend to show the fill
as a square, but the linetype
pattern as just a line instead of a square?