3

This code

library(ggplot2)

ggplot(mtcars, aes(mpg, hp)) +
  facet_wrap(am ~ cyl, ncol = 6) +
  geom_point()

produces the following graph

enter image description here

The variable "am" has two values (0 and 1) that are repeated 3 times each. I wonder whether it is possible to include a single strip with the value 0 centered (and the same for the value 1).

danilinares
  • 1,172
  • 1
  • 9
  • 28
  • 1
    @RLave I updated the graph to show the type of graph that I am working – danilinares Oct 17 '18 at 10:46
  • 2
    possible duplicate: see answer [https://stackoverflow.com/questions/31776079/multiple-titles-in-facet-wrap-ggplot2](https://stackoverflow.com/questions/31776079/multiple-titles-in-facet-wrap-ggplot2) – bob1 Oct 17 '18 at 14:28

0 Answers0