Book Image

R Graphs Cookbook Second Edition

Book Image

R Graphs Cookbook Second Edition

Overview of this book

Table of Contents (22 chapters)
R Graphs Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 7. Creating Histograms

In this chapter, we will cover the following recipes:

  • Visualizing distributions as count frequencies or probability densities

  • Setting bin size and the number of breaks

  • Adjusting histogram styles – bar colors, borders, and axes

  • Overlaying a density line over a histogram

  • Multiple histograms along the diagonal of a pairs plot

  • Histograms in the margins of line and scatter plots