My code is:
ggplot(my_data, aes(x = factor(inst), y = value, fill = color)) +
geom_boxplot(position = position_dodge(width = 0.75)) +
scale_fill_manual(values = c("blue" = "blue", "green" = "green", "red" = "red", "yellow" =
"yellow")) +
theme_bw()
And it shows a graph like this:
My grouping variable is color. How can I visualize the boxplots with different patterns inside,just black and white background, instead of colors.