7BASIC PLOTTING

image

One particularly popular feature of R is its incredibly flexible plotting tools for data and model visualization. This is what draws many to R in the first place. Mastering R’s graphical functionality does require practice, but the fundamental concepts are straightforward. In this chapter, I’ll provide an overview of the plot function and some useful options for controlling the appearance of the final graph. Then I’ll cover the basics of using ggplot2, a powerful library for visualizing data in R. This chapter will cover just the basics of plotting, and then you’ll learn more about creating different types of statistical plots ...

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.