Learn R Programming

BayesBD (version 1.2)

triangle2: Generate triangle boundaries

Description

Generate boundaries of equilateral triangles of height S.

Usage

triangle2(S)

Arguments

S

height of the generated triangle.

Examples

Run this code
# NOT RUN {
gamma.fun = triangle2(0.5)
theta.plot = seq(from = 0, to = 2*pi, length.out = 200)
x = gamma.fun(theta.plot)*cos(theta.plot)
y = gamma.fun(theta.plot)*sin(theta.plot)
plot(x,y,type = 'l', axes=TRUE, frame.plot=FALSE)
# }

Run the code above in your browser using DataLab