Chapter 11 Other Graphs

This guide will not go into the same detail for bar graphs, histograms, and box plots as it did for line graphs. One of the reasons for this is that many of the skills we learned for line graphs (theme edits, geom elements, facet wraps, etc.) also work for bar graphs. Another is that line graphs are traditionally used in my home field of behavioral neuroscience as the primary graph type; however, detailed instruction for line graphs are sparser than for other graph types.

In this chapter, we will briefly touch on some of the more unique aspects of these kinds of graphs. If you want more detailed instruction for these “other” graph types, there are plenty of resources on the internet, including Hadley Wickham’s R for Data Science: https://r4ds.had.co.nz/. Remember that we use the ggplot2 package to graph our data in this book. There are other methods/packages that can perform similarly, but ggplot2 is the most powerful method. As such, don’t forget to add “ggplot2” in your search phrase if you’re scouring the internet for additional help.