plot_reg: Plot points with the corresponding linear regression line

Description Usage Arguments Value Author(s) Examples

View source: R/plot_reg.r

Description

Plots points with the corresponding linear regression line

Usage

1
plot_reg(x, y, pch = 19, xlab = NULL, ylab = NULL, ...)

Arguments

x

numeric vector

y

numeric vector

pch

type of points

xlab

character string, label of the x axis, NULL by default

ylab

character string, label of the y axis, NULL by default

...

other arguments to be passed in plot

Value

None

Author(s)

Hugo Varet

Examples

1
plot_reg(cgd$age,cgd$height,xlab="Age (years)",ylab="Height")

hvaret/packHV documentation built on July 4, 2020, 12:04 a.m.