I really use this template, changing colors and palettes until I come up with a nice set:
plot + theme( panel.background = element_rect(fill = "col1", colour = NA), # or theme_blank() plot.background = element_rect(fill = "white",colour = NA), panel.grid.minor = element_line("col2", size = 0.1), panel.grid.major = element_line("col3", size = 0.1)) + theme(axis.text=element_text(size=12, colour="black"), axis.title=element_text(size=12,face="bold"))
For instance:
p <- qplot(speed, dist, data=cars) p + geom_point(aes(colour=dist)) + scale_colour_gradientn(colours=rainbow(4)) + theme( panel.background = element_rect(fill = "#21215f", colour = NA), # or theme_blank() plot.background = element_rect(fill = "white",colour = NA), panel.grid.minor = element_line("#736391", size = 0.1), panel.grid.major = element_line("#ecc6d9", size = 0.1)) + theme(axis.text=element_text(size=12, colour="black"), axis.title=element_text(size=12,face="bold"))
For a better mesh, the color in panel.grid.minor may be closer to the color in panel.background . You can actually change a lot of things to get your preferred template.
These links may help:
http://www.cookbook-r.com/Graphs/Colors_(ggplot2)
http://www.w3schools.com/colors/colors_picker.asp
http://sape.inf.usi.ch/quick-reference/ggplot2/themes

source share