Themes for presentation with ggplot2

I am currently tasked with making a heavy presentation. Naturally, I am going to prepare all my stories in ggplot2 . I love Hadley by default, because they look great both on screen and in print. I usually also use these default values ​​for presentations, using either a projector or a flat-screen TV. However, I was wondering what other options might be there that would look good in a design environment? In particular, I was interested to know if I can use the collective knowledge here to see the theme() options that other people use for presentation purposes when preparing graphs using ggplot2 .

What theme settings are recommended for projection presentations? How to implement these settings in ggplot2 ?

If there are repositories for the ones you recommend, I also appreciate the link.

+5
source share
1 answer

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

enter image description here

+3
source

Source: https://habr.com/ru/post/1242315/


All Articles