STAT 451, Day 17

Visualizing Patterns over Time

Examples

Recall that the data files and relate R code can be downloaded from the book's website. Book

We will look as some of the examples from Chapter 4

Hot Dog Eating, bargraphs with R

The Hot Dog Eating example gives a good idea how to work with R to make bargraphs.

Try the author's program bars.R or see

Activity One: bars.Rmd

  • Note the use of the for loop and the if-then-else statement to color specific bars in the graph
  • Note the use of the time labeling.