treeJuliaSet {treenomial} | R Documentation |
Plots a Julia Set for a tree
Description
Finds the Julia Set for the y evaluated polynomial of a tree and plots in a square image.
Usage
treeJuliaSet(
tree,
pixelLength = 700,
center = 0,
maxZ = 2,
maxIter = 100,
col = c("white", colorRampPalette(c("dodgerblue4", "lightblue"))(98), "black"),
y
)
Arguments
tree |
phylo object |
pixelLength |
number of pixels on one side of the image |
center |
complex number giving the center of the image on the complex plane |
maxZ |
the max value for the real and imaginary axis |
maxIter |
maximum count for iterations |
col |
colours to be used for the image |
y |
the y value to evaluate the polynomial at |
Examples
library(treenomial)
library(ape)
treeJuliaSet(stree(5,type = "right"), y = 1+1i)
[Package treenomial version 1.1.4 Index]