ggplot2: Using gtable to move strip labels to top of panel for facet_grid
I am creating a graphic using facet_grid to facet a categorical variable on the y-axis. I decided not to use facet_wrap because I need space = 'free' and labeller = label_parsed . My labels are long and I have a legend on the right so I would like to move the labels from the right of the panel to the top of the panel. Here is an example to show where I'm getting stuck. library(ggplot2) library(gtable) mt <- ggplot(mpg, aes(x = cty, y = model)) + geom_point() + facet_grid(manufacturer ~ ., scales = 'free', space = 'free') + theme_minimal() + theme(panel.margin = unit(0.5, 'lines'), strip.text.y