Learn R Programming

psda (version 1.4.0)

spolygon: Symbolic Polygon

Description

The function obtains a simple symbolic polygon from center and radius representation.

Usage

spolygon(center, radius, vertices)

Arguments

center

a integer that represents the barycenter of polygon.

radius

a integer that represents the radius of polygon.

vertices

represents the number of vertices for the polygon.

Value

matrix that represents the polygon.

Examples

Run this code
# NOT RUN {
spolygon(2.5, 3, 5) #pentagon

# }

Run the code above in your browser using DataLab