CHAPTER 5

image

Creating Tables and Graphs

In the last chapter, you learned how to use R for the most common numerical descriptive statistics. In this chapter, you learn how to use R for summary tables and for various graphical representations of data. As with many of the other functions of R, you will learn that the methods R provides often produce quite different results depending on the input.

R’s graphical capabilities are quite extensive, and the plots and other graphs it produces are highly customizable. After discussing frequency tables in detail, we will examine pie charts, bar charts, histograms, boxplots, line graphs, and scatter plots. Although ...

Get Beginning R: An Introduction to Statistical Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.