Geom.smooth

Plot a smooth function estimated from data. An alias for Geom.line with Stat.smooth.

Aesthetics

Arguments

Examples

x_data = 0.0:0.1:2.0
y_data = x_data.^2 + rand(length(x_data))
plot(x=x_data, y=y_data, Geom.point, Geom.smooth(method=:loess,smoothing=0.9))
x 0.0 0.5 1.0 1.5 2.0 0 1 2 3 4 5 y
plot(x=x_data, y=y_data, Geom.point, Geom.smooth(method=:loess,smoothing=0.2))
x 0.0 0.5 1.0 1.5 2.0 0 1 2 3 4 5 y