splitCircle {oaPlots}R Documentation

Function for drawing a split circle (two differently colored semicircles)

Description

Function for drawing a split circle (two differently colored semicircles)

Usage

splitCircle(x, y, radius, splitAngle = pi/4, nv = 100, border = NA,
  col1 = NA, col2 = NA, lty = 1, lwd = 1)

Arguments

x

x location of the circle center

y

y location of the circle center

radius

radius of the circle

splitAngle

angle (in radians) that splits the color in two halves

nv

number of vertices used to draw the circle

border

binary whether to include a border on the circle

col1

color of the first semicircle

col2

color of the second semicircle

lty

line type used for drawing the circle polygon

lwd

line width used for darwing the circle polygon

Value

none, split circle is drawn to the current device

Author(s)

Jason Waddell

Examples

plot(-1, -1, xlim = c(0, 1), ylim = c(0,1), type = "n")
splitCircle(x = 0.5, y = 0.5, radius = 0.48,
		splitAngle = pi/4, nv = 1000, border = NA,
		col1 = "blue", col2 = "red")

[Package oaPlots version 0.0.25 Index]