4.20 Axes

  • We can modify axes/scales using various functions as depicted in Figure 4.9.
  • xlab() and ylab(): Set labels
  • scale_color_manual(): Manually set the color scale (same logic for other scales)
  • scale_x_continuous(): Manually set a numeric scale
  • xlim() and ylim(): Set limits
## Scale for 'x' is already present. Adding another scale for 'x', which will
## replace the existing scale.
## Warning: Removed 302 rows containing missing values (geom_point).
Modifying scales and axes

Figure 4.9: Modifying scales and axes