grid.semicircle {lodplot}R Documentation

Draws a semicircle

Description

Using grid graphical commands, draws a semicircle (including the base).

Usage

grid.semicircle(base.x, base.y, base.length, height = base.length, 
  side = 1, orientation = NULL, col = NULL)

Arguments

base.x is X coordinate of base
base.y is Y coordinate of base
base.length is length of base of semicircle
height is height of semicircle
side is orientation of semicircle, one of four cardinal directions
orientation is orientation, in degrees
col is line colour used to draw the semicircle

Details

Draw a semicircle either oriented to the four cardinal points (side 1=below 2=left 3=above, 4=right), in which case base.x and base.y determine the bottom left point of base, or an angle, when base.x and base.y are the midpoint of the base.

Value

A grid graphical object.

Author(s)

David L Duffy


[Package lodplot version 1.0 Index]