2024-12-28
Visualize these five values: 1, 3.16, 10, 31.6, 100
A linear scale emphasizes large counties
A log scale shows symmetry around the median
The boxoffice
dataset:
The tx_counties
dataset:
Recall the box-office example from a prior lecture:
Add scale functions (no change in figure so far):
The parameter name
sets the axis title:
Note: We could do the same with xlab()
and ylab()
The parameter limits
sets the scale limits:
Note: We could do the same with xlim()
and ylim()
but I advise against it, as these functions can have unexpected side-effects
The parameter breaks
sets the axis tick positions:
The parameter labels
sets the axis tick labels:
The parameter expand
sets the axis expansion:
Linear y scale: