Skip to content
Prev 660 / 885 Next

Choice of graphics package

Woops, messed up the example! I meant

theme_set(theme_bw() +
          theme(rect = element_rect(fill = "gray10")))

scale_discrete <- scale_fill_manual(values = c("orange", "purple",
"pink", "cyan"))

ggplot(mtcars, aes(x = hp, fill = factor(gear))) + geom_bar()

i.e., the whole point is you don't need to add this stuff to every plot.

Best,
Ista
On Fri, Nov 27, 2015 at 9:13 PM, Ista Zahn <istazahn at gmail.com> wrote: