Skip to content

Instantly share code, notes, and snippets.

@timcdlucas
Created August 25, 2015 09:13
Show Gist options
  • Save timcdlucas/536bae09750236dc356b to your computer and use it in GitHub Desktop.
Save timcdlucas/536bae09750236dc356b to your computer and use it in GitHub Desktop.
Greys
library(ggplot2)
x <- data.frame(y = rnorm(100), g = rep(letters[1:4], 25))
ggplot(x, aes(y = y, x = g, fill = g)) +
geom_boxplot() +
ylim(c(-15, 15)) +
scale_fill_manual(values = grey(c(0, 0.5, 0.9, 1))) +
theme_bw()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment