ggplot(iris, aes(Sepal.Width, Sepal.Length)) +
geom_point() +
facet_grid(Species ~.) +
theme(
strip.background = element_part_rect(side = "tb", colour = "black"),
panel.background = element_part_rect(side = "l", colour = "black")
)
Run the code above in your browser using DataLab