0

This code generates the plot below:

data(mpg)
mg <- ggplot(mtcars, aes(x = mpg, y = wt)) + geom_point()
mg + facet_grid(vs + am ~ gear, margins = "vs")

enter image description here

The outer headers of y axis (e.g. 0,0) are the same but in different facets (grey rectangles). How can I display them as one single rectangle? I saw a similar post, but it added a label for the entire axis. Thanks

markus
  • 25,843
  • 5
  • 39
  • 58
Hrant
  • 219
  • 3
  • 12

0 Answers0