Learn R Programming

RFOC (version 3.4-6)

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)

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

Value

list used for plotting:

x

x coordinates

y

y coordinates

phi

angles, radians

Examples

Run this code
# NOT RUN {
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