Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update the default line size of stat_smooth in ggplot2?

Tags:

r

ggplot2

The newest ggplot2 version (2.0.0) changed the line size of stat smooth from 0.5 to 1. How could I update the default line size of stat_smooth into 0.5?

I tied this

update_stat_defaults("smooth", list(size = 0.5))

But it does not work.

Thanks a lot for your help.

like image 661
Wei Zhou Avatar asked Feb 26 '16 18:02

Wei Zhou


1 Answers

As stated by rawr in comments (and not posted as an answer for a month now), the default line size of stat_smooth can be changed with:

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

Other default sizes can be changed similarly.

like image 187
RHA Avatar answered Sep 19 '22 18:09

RHA