Visualizing Data with ggplot2
摘要
This chapter covers data visualizations using the package ggplot2. It covers the basics of how to make two plots that visualize a single variable (histograms for continuous variables, bar plots for categorical and dichotomous variables) and two plots that visualize pairs of variables (box plots for one categorical and one continuous variable, scatter plots for two continuous variables). In addition to the basics of plot construction, it covers some basic aspects of making the plots informative and attractive.