7. smooth plot
geom_smooth()에서 주로 건드리는 옵션은 method, se옵션입니다.
xxxxxxxxxx
ggplot(STOCK) +
geom_smooth(aes(x = Open, y = Stock.Trading),
method = 'lm', size = 2,
col = '#8A8585') +
theme_bw()
ggplot(STOCK) +
geom_smooth(aes(x = Open, y = Stock.Trading),
method = 'lm',se = FALSE, size = 2,
col = '#8A8585') +
theme_bw()
ggplot(STOCK) +
geom_smooth(aes(x = Open, y = Stock.Trading),
method = 'loess', size = 2,
col = '#8A8585') +
theme_bw()
ggplot(STOCK) +
geom_smooth(aes(x = Open, y = Stock.Trading),
method = 'loess',se = FALSE, size = 2,
col = '#8A8585') +
theme_bw()
댓글
댓글 쓰기