Learn R Programming

dprep (version 3.0.2)

circledraw: circledraw

Description

This function draws a circle using the polygon function from the graphics package. It is an auxiliary function used by radviz2d.

Usage

circledraw (numpts = 200, radius = 1)

Arguments

numpts
Number of edges of the polygon, default is 200.
radius
Radius of the circle to be drawn, default is 1.

Value

Displays a circle of radius = radius.

Details

A circle of a specified radius is drawn by the polygon function of the graphics library by constructing a polygon with numpts number of edges. It is intended to be an auxiliary function for the radviz2d visualization.

Examples

Run this code
#----Circledraw examples
circledraw()

Run the code above in your browser using DataLab