Learn R Programming

clonevol (version 0.99.11)

draw.branch: Draw tree branch using polygon that allows for choosing border style and fill

Description

Draw tree branch using polygon that allows for choosing border style and fill

Usage

draw.branch(x0, y0, x1, y1, w = 1, border.color = "black",
  border.linetype = "solid", border.width = 0.5, fill.color = NULL, ...)

Arguments

Examples

Run this code
# NOT RUN {
plot(x=c(0,30), y=c(0, 30));
# }
# NOT RUN {
draw.branch(c(5, 20, 12, 5, 5, 20),
 c(5, 20, 10, 20, 25, 25),
 c(10, 12, 20, 12, 10, 20),
 c(12, 15, 5, 12, 25, 29),
 border.linetype=c(1, 2, 3, 4,1,2),
 border.width=c(1,2,1,2,2,2))
# }

Run the code above in your browser using DataLab