splitCircle: Function for drawing a split circle (two differently colored...

Description Usage Arguments Value Author(s) Examples

View source: R/splitCircle.R

Description

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

Usage

1
2
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

1
2
3
4
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")

oaPlots documentation built on May 2, 2019, 6:46 a.m.

Related to splitCircle in oaPlots...