0
我想要使用ggplot2中的LOESS平滑器绘制以下data。下面的代码可以正常工作,但我无法找到如何更改LOESS行的线型。改变ggplot2中黄土光滑的线型
dat_int <- as.data.frame(read.csv("user_interactions.csv", sep=";", header=TRUE))
qplot(interactions, accurate, data=dat_int, geom=c('smooth'), method='loess')
我试过以下,这是行不通的。
ggplot(dat_int, aes(x=interactions, y=accurate, linetype=5))
+ stat_smooth(size=1.5, method = "loess", level = 0.95,
fullrange = TRUE, se = FALSE)