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 8. Box and Whisker Plots

In this chapter, we will cover the following recipes:

  • Creating box plots with narrow boxes for a small number of variables

  • Grouping over a variable

  • Varying box widths by number of observations

  • Creating box plots with notches

  • Including or excluding outliers

  • Creating horizontal box plots

  • Changing box styling

  • Adjusting the extent of plot whiskers outside the box

  • Showing the number of observations

  • Splitting a variable at arbitrary values into subsets