In this section, we'll change the color scheme and use a different palette. Let's begin by implementing the following steps:
- Use the predefined theme, theme_bw, and create the same plot as in the previous example:
(p2+theme_bw()+ggtitle("theme_bw()"))
Now, we will use a different color palette.
- The ?scale_fill_brewer command provides the following palettes (the code snippets are included):
- Try using Spectral, Pastel1, and Oranges to produce the following plots:
p4 + scale_fill_brewer(palette="Spectral")
Let's take a look at plot 1:
Let's take a look at plot 2:
Let's take a look at plot 3: