Learn R Programming

psda (version 1.4.0)

pplot: Plot polygonal symbolic variable

Description

Prints all overlaid polygons in the display. The polygons obtained through classes.

Usage

pplot(polygon, center = FALSE, color = "black")

Arguments

polygon

A list of matrices with dimension l x 2 where l represents vertices number of polygon.

center

logical. iF FALSE(the default) the center of polygon is not displayed.

color

A string that describes the color of center.

Examples

Run this code
# NOT RUN {
x <- psim(10, 10) #simulate 10 polygons of 10 sides
pplot(x, center = TRUE, color = 'red')
# }

Run the code above in your browser using DataLab