Line height spacing for text in ggplot
You may be looking for a combination of options. The closest to lheight
is likely setting lineheight
in element_text
. I also made the font smaller, just to show options.
ggplot(data = df0, aes(x = car, y = mpg)) +
geom_bar(stat = "identity") +
coord_flip() +
theme(axis.text.y = element_text(lineheight = 0.5,
size = 6))