A linear scale emphasizes large counties
A log scale shows symmetry around the median
Recall the musical artists example from a prior lecture
ggplot(artists, aes(monthly_streamers, fct_reorder(artist, monthly_streamers))) + geom_col()
Add scale functions (no change in figure so far)
ggplot(artists, aes(monthly_streamers, fct_reorder(artist, monthly_streamers))) + geom_col() + scale_x_continuous() + scale_y_discrete()
The parameter name sets the axis title
name
ggplot(artists, aes(monthly_streamers, fct_reorder(artist, monthly_streamers))) + geom_col() + scale_x_continuous( name = "Monthly streamers" ) + scale_y_discrete( name = NULL # no axis title )