Skip to content

Instantly share code, notes, and snippets.

@jenniferthompson
Created July 27, 2018 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jenniferthompson/cd49fd63134750de6b658698b93842e6 to your computer and use it in GitHub Desktop.
Save jenniferthompson/cd49fd63134750de6b658698b93842e6 to your computer and use it in GitHub Desktop.
library(ggplot2)
ggplot(
data = subset(
diamonds, cut %in% c("Fair", "Good") &
color %in% LETTERS[4:5]
),
aes(x = carat, y = price)
) +
facet_wrap(~ cut + color, nrow = 1) +
geom_point()
## How to make it clearer that Fair and Good are grouped?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment