
上QQ阅读APP看书,第一时间看更新
Plotting a shape reference palette for ggplot2
Shapes are picked following a default scale when you input a variable to work as shape using ggplot2. You can always choose to tweak this scale to one of your preference. To do so you need to know which shapes are available and how you can call for them. This recipe simply draws the following shape palette:

Figure 2.4 - ggplot2 shape palette.
It shows available points, plus the number used to call for them. Now let's explore the code that built it.