darc: Circular Arc

Description Usage Arguments Details Value Author(s) Examples

Description

Draw acircular arc from angle 1 to angle 2 at a given location.

Usage

1
darc(rad = 1, ang1 = 0, ang2 = 360, x1 = 0, y1 = 0, n = 1)

Arguments

rad

radius

ang1

angle 1, degrees

ang2

angle 2, degrees

x1

x location, plot coordinates

y1

y location, plot coordinates

n

increment for number of segments, degrees

Details

If angle1 > angle2 arc is drawn in opposite direction

Value

list(x,y)

Author(s)

Jonathan M. Lees<jonathan.lees@unc.edu>

Examples

1
2
3
4
5
plot(c(0,1), c(0,1), type='n', ann=FALSE, asp=1)

A = darc(.3, 23, 47, .5, .5, n=1)

lines(A$x, A$y)

GEOmap documentation built on May 2, 2019, 8:56 a.m.