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
  • 24,556
  • 5
  • 34
  • 51
Hrant
  • 209
  • 2
  • 11

0 Answers0