PolarShapes: Polar Shapes

PolarShapesR Documentation

Polar Shapes

Description

Functions to draw shapes from polar co-ordinates.

Usage

runPolarShape(
  x = 0,
  y = 0,
  r = c(0.2, 0.1),
  points = 5,
  loops = 1,
  rotation = 0,
  polarFunction = NULL,
  polarArguments = list(),
  repeats = 1,
  useSegments = FALSE
)

makePolarShape(type = "polygon", ...)

makeStar(...)

makeCircle(r = 1, points = 100, ...)

Arguments

x, y

the center of the shape

r

radius

points

the number of points on single loop

loops

the number of times the line wraps around the center

rotation

rotation in radians. rotates the shape this much.

polarFunction

if not null, gives radius instead of r

polarArguments

a list of arguments passed to polarFunction

type

The name(s) of the plotting function(s) used to plot the component. Defaults to "polygon". This can also include the names of classes linked to a plotting function.

Details

makePolarShape has two modes depending on if a polar function is given instead of a radius r.

Examples

art=makeStar(r=c(0.1,NA,0.2,NA,0.4,NA),points=13,loop=6)
easyPlot(art,preserveAspectRatio=TRUE)

R-graphic-design/RGD documentation built on Jan. 2, 2023, 10:30 p.m.