lineq: Parameters of a line drawn on a plot

Description Usage Arguments Details Value

View source: R/lineq.R

Description

Parameters of a line drawn on a plot

Usage

1
2
3

Arguments

lineq

List returned by lineq

m

Matrix with two columns giving the coordinates of points on a plot

Details

Interactively draw a line on the plot and return the parameters of that line. Useful for determining the points that are above or below the line

lineq.above takes the output of lineq and coordinates of some points on the plot and returns a logical vector indicating the points that lie above that line

Value

lineq returns a list with intercept and coefficient of the line drawn between the two clicks of the user. lineq.above returns a logical vector indicating the points that lie above that line.


january3/myfuncs documentation built on April 1, 2020, 4:42 a.m.