O'Reilly logo

R for Data Science by Dan Toomey

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Data Visualization – Plotting

A key visualization technique in R is a plot, whether it is a scatter plot, bar histogram, or even a word cloud. The R system provides quite an array of plotting mechanisms, both built into the basic R system and available in a variety of packages.

This chapter will cover plotting in the following ways:

  • Scatter plots
  • Bars and histograms
  • Word clouds

Packages

In R, there are several packages available that provide plotting functionalities to the programmer. We will use the following packages in the examples:

  • car: With a name that is an acronym for Companion to Applied Regression, this package provides the regression tools
  • lattice: This package provides high-level data visualization
  • gclus: This package has functions ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required