14BASIC DATA VISUALIZATION

image

Data visualization is an important part of a statistical analysis. The visualization tools appropriate for a given data set are dependent upon the types of variables (as per the definitions in Sections 13.1.1 and 13.1.2) for which you’ve made observations. In this chapter, you’ll look at the most commonly used data plots in statistical analyses and see examples using both base R graphics and ggplot2 functionality.

14.1 Barplots and Pie Charts

Barplots and pie charts are commonly used to visualize qualitative data by category frequency. In this section you’ll learn how to generate both using R.

14.1.1 Building a Barplot ...

Get The Book of R 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.