0

I want one of the bars that I am drawing in ggplot2 to have a diagonal pattern of two colors, similar to this:

enter image description here

Is that possible? I am currently assigning my colours with this:

scale_fill_manual("legend", values = c("A" = "forestgreen", 
                                       "B" = "red2", 
                                       "C" = "chocolate1")) +
aosmith
  • 32,788
  • 7
  • 75
  • 108
Abdel
  • 5,402
  • 11
  • 50
  • 74
  • 2
    There is not standard feature in the current ggplot2 that allows you to do this. Any solution will be rather ugly and involved. – Claus Wilke Dec 27 '17 at 15:33
  • 3
    Relevant prior question: https://stackoverflow.com/questions/2895319/how-to-add-texture-to-fill-colors-in-ggplot2 – Claus Wilke Dec 27 '17 at 15:34

0 Answers0