ggplot2

Ilya Kashnitsky

09 December 2016

A bit more motivation

http://qz.com/316906/the-dude-map-how-american-men-refer-to-their-bros

Visualizing life tables

http://flowingdata.com/2016/01/19/how-you-will-die

https://www.r-bloggers.com/pisa-2015-how-to-readprocessplot-the-data-with-r

American schools

http://www.nytimes.com/interactive/2016/04/29/upshot/money-race-and-success-how-your-school-district-compares.html

Plotting systems in R?

  • base
  • lattice
  • ggplot2

“The winner takes it all”

cat

Strength of base plotting system

  • Usually, base knows how to plot an object
  • Extremely easy to use if you are happy with the default settings
  • BUT
  • Now ggplot2 has the autoplot function

The only example when ggplot2 failed for me

http://stackoverflow.com/questions/17753502

https://github.com/tidyverse/ggplot2/issues/1720

What makes ggplot2 special?

“gg” means “Grammar of graphics”

http://www.springer.com/us/book/9780387245447

Extremely big and helpful community

  • Help
  • Examples
  • Rapid development
  • Extensions

http://www.ggplot2-exts.org/gallery/

Amazing documentation

http://docs.ggplot2.org/current

ggplot2 show

Please follow me on “show-ggplot2.R