Usage
treeColor(branches = 30, trunkColor = NULL, branchColor = NULL, seed = NULL)
tree(branches = 30, seed = NULL)
Arguments
branches
integer giving the number of branches.
trunkColor
a vector of colors, the default is the browns.
branchColor
a vector of colors, the default is the greens.
seed
an integer giving the argument for set.seed
.
Side effects
create a plot on the current graphics device,
and modify the random seed.Examples
Run this code# a specific picture
treeColor(seed=7)
# different each time
treeColor()
Run the code above in your browser using DataLab