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 12. Data Visualization Using ggplot2

In this chapter, we will cover the following recipes:

  • Creating bar charts

  • Creating multiple bar charts

  • Creating a bar chart with error bars

  • Visualizing the density of a numeric variable

  • Creating a box plot

  • Creating a layered plot with a scatter plot and fitted line

  • Creating a line chart

  • Graph annotation with ggplot