plot_reg: Plot points with the corresponding linear regression line

View source: R/plot_reg.r

plot_regR Documentation

Plot points with the corresponding linear regression line

Description

Plots points with the corresponding linear regression line

Usage

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

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

hvaret/packHV documentation built on June 14, 2025, 5:31 p.m.