Learn R Programming

RFOC (version 1.0-4)

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:
  • xx coordinates
  • yy coordinates
  • phiangles, radians

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