簡體   English   中英

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

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

最新的ggplot2版本(2.0.0)將stat smooth的行大小從0.5更改為1.如何將stat_smooth的默認行大小更新為0.5?

我綁了這個

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

但它不起作用。

非常感謝你的幫助。

正如rawr在評論中所述(並且現在沒有作為答案發布一個月), stat_smooth的默認行大小可以通過以下方式更改:

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

其他默認大小可以類似地更改。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM