tags:

views:

61

answers:

1

I'm creating a plot and adding a basic loess smooth line to it.

qplot(Age.GTS2004., X.d18O,data=deepsea, geom=c('point')) + 
geom_smooth(method="loess",se=T,span=0.01, alpha=.5, fill='light blue',color='navy')

The problem is that the line is coming out really choppy. I need more evaluation point for the curve in certain areas. Is there a way to increase the number of evaluation points without having to reconstruct geom_smooth?

+1  A: 

Use the n parameter, as documented in stat_smooth.

hadley