Y 軸のタイトルが軸のテキストに近すぎます。
ggplot(mpg, aes(cty, hwy)) + geom_point()

多くのパラメータの値を変更しようとしましtheme()たが、どれも役に立たないようです。
の引数をggplot2 2.0.0使用して、軸のタイトルと数値の間の距離を変更できます。要素のop、ight、ottom、およびeft 側の値を設定します。margin =element_text()margintrbl
ggplot(mpg, aes(cty, hwy)) + geom_point()+
theme(axis.title.y = element_text(margin = margin(t = 0, r = 20, b = 0, l = 0)))
margin、、などの他のelement_text要素 ( を参照) にも使用できます。?themeaxis.text.xaxis.text.ytitle
添加
軸の位置が異なる場合に軸タイトルの余白を設定するには (たとえば、 ではscale_x_...(position = "top")、別のテーマ設定が必要になります。たとえば、 https://github.com/tidyverse/ggplot2/issues/4343axis.title.x.topを参照してください。