circleFun: circleFun

Description Usage Arguments Details Value Source Examples

View source: R/treePlot.R

Description

This function is usend to collecting a data frame of points which together form a circle based on the diameter/radius and angle according to x-y axis

Usage

1
circleFun(center = c(0, 0), r = 10, npoints = 100)

Arguments

center

the center of the circle

r

radius of the circle

npoints

a sequence of number with a distance of "by" by = ((to - from)/(length.out - 1)),

Details

the built in "pi" is not exactly equal to qi due to rounding,

Value

data frame of points with their x, y coordinates information that form the circle

Source

https://stackoverflow.com/questions/6862742/draw-a-circle-with-ggplot2

Examples

1
c1 <- circleFun(center = c(0,0), r = 10, npoints = 100)

Norisama/VFtree documentation built on Dec. 8, 2019, 9:28 a.m.