Learn R Programming

RFOC (version 3.4-10)

PLTcirc: Circle Plot with Cross Hairs

Description

Plot an arc of a circle with cross-hairs.

Usage

PLTcirc(gcol = "black", border = "black", ndiv = 36,
         angs = c(-pi, pi), PLOT = TRUE, add = FALSE)

Value

list used for plotting:

x

x coordinates

y

y coordinates

phi

angles, radians

Arguments

gcol

cross hairs color

border

border color

ndiv

number of divisions

angs

vector from angs[1] to angs[2] in radians

PLOT

logical, if TRUE plot

add

logical, if TRUE add to existing plot

Author

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

Examples

Run this code

PLTcirc(gcol = "purple", border = "black", ndiv = 36, angs = c(-pi, pi), PLOT = TRUE, add = FALSE)

PLTcirc(gcol = NULL, border = "green" , ndiv = 36, angs = c(-pi/4, pi/4), PLOT = TRUE, add = TRUE)



Run the code above in your browser using DataLab