I am trying to figure out how scale_continuous()
expand
argument works. According to scale_continuous documentation:
A numeric vector of length two giving multiplicative and additive expansion constants. These constants ensure that the data is placed some distance away from the axes. The defaults are c(0.05, 0) for continuous variables, and c(0, 0.6) for discrete variables.
Since they are "expansion constants", they are not actual units. Is there any way to convert them to some actual measurement to predict the actual output? For anything except 0, I just try random numbers until it works. There must be a more proper way to approach this.
expand
operates; it's just trying to provide a little padding based on the range of your data. – Shrieval