How to increase the number of score points in geom_smooth for ggplot2 in R

I create a plot and add a left 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 comes out very strange. I need an additional evaluation point for the curve in certain areas. Is there a way to increase the number of score points without having to reconstruct geom_smooth?

+3
source share
2 answers

Use the option nas described in stat_smooth.

+4
source

Hadley: The documentation is misleading. geom_smoothIt does not document that it accepts parameters on behalf of stat_smooth, and there is no link on this page stat_smoothto continue reading.

, - , , , .

+2

Source: https://habr.com/ru/post/1749511/


All Articles