I want to create a figure using ggpattern
to fill certain polygons with a dotted pattern, in a such a way that each polygon has a different density of dots. That is, I want the number of dots per area to be different between polygons, but still want all dots to be of the same size. Using the argumentpattern_spacing
achieves the density goal, but changes the size of dots. How can I create a similar figure as the one below, but every dot has the same size?
ggplot2::ggplot(df, aes(trt, outcome)) +
ggpattern::geom_col_pattern(ggplot2::aes(fill = trt,
pattern_spacing = outcome/3),
pattern = 'pch')