I am trying to remove a regression line from geom_smooth and keep only the confidence interval. I tried size = 0 , size = NULL and size = NA , but no one works. Is there an easy workaround that anyone knows?
baseball <- ddply(x, .(id), transform, bat.avg = h/ab) hank <- subset(baseball, id == 'aaronha01') ggplot(hank, aes(x = year, y = bat.avg)) + geom_line(size = 1.2, color = '#336699') + geom_smooth(fill = '#bf3030', size = NA) + labs(x = '', y = '')

source share