0

I have the following ggplot, with a simple geom_tile, the challange I'm facing is having the colored squares 'fill' the actual minor and major axis, as it stands the colored squares are in the center of the X and Y axis labels.

I've tried:

  scale_x_discrete(expand = c(0, 0)) 
  scale_y_discrete(expand = c(0, 0)) 
  plot.margin = margin(1, 1, 1, 1, "in")
  coord_fixed(ratio=1)

enter image description here

user1470994
  • 301
  • 1
  • 2
  • 9
  • 1
    It's easier to help you if you include a simple [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) with sample input and desired output that can be used to test and verify possible solutions. – MrFlick Oct 26 '22 at 20:32

0 Answers0