facets-as-subplots

Making Facets Look Closer to Sub-Plots

random-code-snippets
ggplot2
R
Author
Published

December 21, 2023

TL;DR

Use strip.background and panel.border to adjust a faceted plot to look closer to sub-plots.

Motivation

I’ve been using the cowplot::theme_cowplot a lot for my manuscript figures. In conjunction, I’ll use patchwork to arrange panels together when necessary.

Example

Reuse

Citation

BibTeX citation:
@online{m flight2023,
  author = {M Flight, Robert},
  title = {Facets-as-Subplots},
  date = {2023-12-21},
  url = {https://rmflight.github.io/posts/2023-12-21-facetsassubplots},
  langid = {en}
}
For attribution, please cite this work as:
M Flight, Robert. 2023. “Facets-as-Subplots.” December 21, 2023. https://rmflight.github.io/posts/2023-12-21-facetsassubplots.