In this chapter, we will learn about scatter plots in depth by looking at some advanced recipes. Scatter plots are one of the most commonly used type of graphs in data analysis. In the first chapter, we learned how to create a basic scatter plot. Now, we will learn how we can create more enhanced plots by adjusting various arguments and using some new functions.
So far, we have mostly only used the base graphics functions such as plot()
, but in this chapter, we have recipes that use other graph libraries such as lattice
and ggplot2
, which offer more advanced control over graphs. It is possible to create these advanced graphs using the base library too, but the additional libraries give us ways to achieve the same results with less code and often produce better-looking graphs with the least amount of effort.
A lot of new functions will be introduced in this chapter. It is a good practice to look up the help file whenever you encounter a new function. For example, to look up the...