如何在ggplot2中更新stat_smooth的默认行大小?

Wei*_*hou 7 r ggplot2

最新的ggplot2版本(2.0.0)将stat smooth的行大小从0.5更改为1.如何将默认行大小更新stat_smooth为0.5?

我绑了这个

update_stat_defaults("smooth", list(size = 0.5))
Run Code Online (Sandbox Code Playgroud)

但它不起作用.

非常感谢你的帮助.

RHA*_*RHA 1

正如 rawr 在评论中所述(现在一个月没有作为答案发布),stat_smooth可以通过以下方式更改默认行大小:

update_geom_defaults("smooth", list(size = .5))

其他默认大小可以类似地更改。