Tag Archives: ggplot2


ggplot2 book cover
gggplot2 Elegant Graphics for Data Analysis

Latest addition of Hadley Wickam’s book ggplot2

Springer International Publishing 2016

This is a major update. I spent a lot of time going over the last chapters in the book.

Part 3 Data Analysis covers a different way of using ggplot2. Instead of doing analysis then plotting. Do both parts at the same time using ggplot2 plot and other new useful packages.

Chapter 9 covers tidy data. Tidy data has variables in columns  and observations  in rows. Straight forward but the data doesn’t always come that way.  Packages tidyr and dplyr  help with tidying up data.

One of things covered in Chapter 10 is pipes and the package magrittr. Using pipes makes for cleaner code.

Chapter 11 Modelling for Visualization. Introduces the new package called broom. broom package takes messy data out put of model functions such as lm, glm, anova and makes them tidy.

The beginning of the book covers aes() and that you need it for your plot and geom() you keep adding them as layers.

This a good book for learning how to use ggplot2 and new techniques for analyzing data.

Building Interactive Graphs with ggplot2 and Shiny

Packt Publishing recently released a video called Building Interactive Graphs with ggplot2 and Shiny.
video available here bit.ly/1kEqYFZ

ggplot2 is a plotting system for R.

Shiny is web application server for R from Rstudio, Inc.

The video consists of talking slides and code demos. The site has code that can be downloaded to follow along with the video.  The code runs. Packt publishing is really good about providing code that runs without editing. The video is clear about what and where things are that need to be downloaded to run the code.

This video is good for beginners. There is enough information and links to more info to keep you from getting lost and puzzled.

I learned more about how to use ggplot2. I have a better understanding about code elements like Aesthetics.

I have now set up a Shiny web server. The video has plenty of suggestions on how to go about hosting and sharing your shiny app.

This video has given me lots of ideas of pretty graphs and plots to develop.