attract_proportionally {ggarchery}R Documentation

Move points towards each other a proportion of the distance between them

Description

Move points towards each other a proportion of the distance between them

Usage

attract_proportionally(x, xend, y, yend, prop_start, prop_end)

Arguments

x, xend, y, yend

The coordinates of the start and end of the segment

prop_start, prop_end

How much (proportionally) to take off the start and end of the line

Value

A named list of new coordinates for the start and end of the line


[Package ggarchery version 0.4.3 Index]