How do I increase the number of evaluation points in geom_smooth for ggplot2 in R

Posted by Halpo on Stack Overflow See other posts from Stack Overflow or by Halpo
Published on 2010-06-11T02:27:32Z Indexed on 2010/06/11 2:33 UTC
Read the original article Hit count: 311

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about r

    Related posts about ggplot2