This chapter will demonstrate how to draw different kinds of plots and charts, such as scatter plots, histograms, probability plots, residual plots, box plots, and block plots. We will cover various concepts throughout this chapter, including when we should use different kinds of plots. The code examples in this chapter will utilize the popular R package – ggplot2. We will introduce ggplot2 visualization grammar and learn how to apply it to real-world datasets. We will also demonstrate the examples in this chapter using the iris dataset.
The following topics will be covered in this chapter:
- Advanced graphics grammar of ggplot2 for data visualization
- Drawing and customizing scatter plots
- When to use histogram plots and how to draw and customize them
- Visualizing probability plots
- Drawing and customizing residual plots
- Making box...