Wei Zhou
Wei Zhou

Reputation: 73

How to update the default line size of stat_smooth in 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.

Upvotes: 7

Views: 1075

Answers (1)

RHA
RHA

Reputation: 3862

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.

Upvotes: 1

Related Questions