Chapter 3. Basic Visualization Techniques

In this chapter, we will cover the following recipes:

  • Looking at your data using the plot() function
  • Using pairs.panel() to look at (visualize) correlations between variables
  • Adding text to a ggplot2 plot at a custom location
  • Changing axes appearance to ggplot2 plot
  • Producing a matrix of graphs with ggplot2
  • Drawing a route on a map with ggmap
  • Making use of the igraph package to draw a network
  • Showing communities in a network with the linkcomm package

Introduction

You now have your data in R (as discussed in Chapter 1, Acquiring Data for Your Project) and you gained a good understanding of its structure (in Chapter 2, Preparing for Analysis – Data Cleansing and Manipulation), but do you have an idea of its, let's ...

Get RStudio for R Statistical Computing Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.