get_line: Get line coordinates

View source: R/get_line.R

get_lineR Documentation

Get line coordinates

Description

This function generates points along a line whose coordinates are user-defined.

Usage

get_line(x0, y0, x1, y1, dens = 5e-04)

Arguments

x0

The x coordinate of the starting point for the line

y0

The y coordinate of the starting point for the line

x1

The x coordinate of the ending point for the line

y1

The y coordinate of the ending point for the line

dens

A numerical value indicating the density of points to define along the line. Small values lead to more densely calculated points.

Value

A list with two elements, x and y. These elements hold the x and y coordinates respectively for drawing the line.


TheJacksonLaboratory/CAPE documentation built on Feb. 12, 2024, 4:32 p.m.