Chapter 3. Beyond the Basics – Adjusting Key Parameters

In this chapter, we will cover the following recipes:

  • Setting colors of points, lines, and bars
  • Setting plot background colors
  • Setting colors for text elements – axis labels, titles, plot titles, and legends
  • Choosing color combinations and palettes
  • Setting fonts for annotations and titles
  • Choosing plotting point symbol styles and sizes
  • Choosing line styles and width
  • Choosing box styles
  • Adjusting axis labels and tick marks
  • Formatting log axes
  • Setting graph margins and dimensions

Introduction

In this chapter, you will learn about some of the simplest yet most important settings and parameters of graphs in R base graphics. Learning how to adjust colors, sizes, margins, and styles of various graph elements ...

Get R: Data Analysis and Visualization 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.