Abstract
Scales control the mapping from data to aesthetics. They take your data and turn it into something that you can see, like size, colour, position or shape. Scales also provide the tools that let you read the plot: the axes and legends. Formally, each scale is a function from a region in data space (the domain of the scale) to a region in aesthetic space (the range of the scale). The axis or legend is the inverse function: it allows you to convert visual properties back to data.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Azzalini A, Bowman AW (1990) A look at some data on the old faithful geyser. Appl Stat 39:357–65
Lumley T (2013) dichromat: color schemes for dichromats. R package version 2.0-0. https://CRAN.R-project.org/package=dichromat
Zeileis A, Kurt H, Paul M (2008) Escaping RGBland: selecting colors for statistical graphics. Comput Stat Data Anal. http://statmath.wu-wien.ac.at/~zeileis/papers/Zeileis+Hornik+Murrell-2008.pdf
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2016 the Author
About this chapter
Cite this chapter
Wickham, H. (2016). Scales, Axes and Legends. In: ggplot2. Use R!. Springer, Cham. https://doi.org/10.1007/978-3-319-24277-4_6
Download citation
DOI: https://doi.org/10.1007/978-3-319-24277-4_6
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-24275-0
Online ISBN: 978-3-319-24277-4
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)