In this video we illustrate how to add text (including mathematical symbols), lines, curves, and other features to a scatter or series plot. Applications include adding a nonparametric lowess fit to…
While tapply() applies a function to different observations in a vector, which might correspond to rows in a data frame, lapply() and sapply() apply a function to each element of a list. In the case…