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 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.