trendscatter {s20x} | R Documentation |
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.
trendscatter(x,y,f=0.5)
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. |
Returns the plot.
"resid.plot"
# Peruvian Indians data data(peru) attach(peru) trendscatter(weight,BP) detach(peru)