trendscatter {s20x}R Documentation

Trend and scatter plot

Description

Plots a scatter plot for the variables x, y along with a lowess smooth for the underlying trend. One standard deviation error bounds for the scatter about this trend are also plotted.

Usage

trendscatter(x,y,f=0.5)

Arguments

x, y vectors giving the coordinates of the points in the scatter plot.
f the smoother span. This gives the proportion of points in the plot which influence the smooth at each value. Larger values give more smoothness.

Value

Returns the plot.

See Also

"resid.plot"

Examples

# Peruvian Indians data
data(peru)
attach(peru)
trendscatter(weight,BP)
detach(peru)

[Package s20x version 2.0.1 Index]