powered by
Plots points with the corresponding linear regression line
plot_reg(x, y, pch = 19, xlab = NULL, ylab = NULL, ...)
None
numeric vector
type of points
character string, label of the x axis, NULL by default
NULL
character string, label of the y axis, NULL by default
other arguments to be passed in plot
plot
Hugo Varet
plot_reg(cgd$age, cgd$height, xlab="Age (years)", ylab="Height")
Run the code above in your browser using DataLab