plot_word: Plot the 2D fractal containing the chosen word In ChaosGame: Chaos Game

Description

The function allows to enter a word of at least two letters based on which an Iterated Function System with Probabilities (IFSP) is constructed. This IFSP is then used to generate a two-dimensional fractal containing the chosen word infinitely often, which is then plotted (and optionally probability-integral-transformed).

Usage

 1 2 3 4 5 6 7 8 9 10 plot_word( word = "copula", R = 20, phi = 0, copula = FALSE, portion = 0.2, shift = 1.2, orbit = 3000, letter_type = 1 )

Arguments

 word Word which the fractal should contain infinitely often. R Number of runs of the chaos game. phi Angle of the rotation. copula logical. If TRUE the sample is (approximately) probability-integral-transformed. portion Portion based on which the empirical distribution functions are calculated, if copula = TRUE. shift Distance between letters. orbit Number of steps in each run of the chaos game. letter_type integer, which indicates the type of the letters. Options are 1 (default) or 2 (round letters).

Examples

 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 #Function with word as input, constructs the IFSP and runs the chaos game: # for nice results use, for example, R = 20 and orbit = 3000 A <- plot_word(word = "copula", R = 50, orbit = 100) #plot without histograms of the marginal distributions plot(A, pch =19, col = 4, cex = 0.1) # further examples: # with round letters # A <- plot_word(word = "copula", R = 100, orbit = 300, letter_type = 2) # with rotation # A <- plot_word(word = "copula", R = 100, orbit = 300, phi = pi/8) # A <- plot_word(word = "fractal", R = 100, orbit = 300, phi = pi/6) # (approximately) probability-integral-transformed # A <- plot_word(word = "copula", R = 100, orbit = 300, phi = pi/8, copula = TRUE) # A <- plot_word(word = "fractal", R = 100, orbit = 300, phi = pi/6, copula = TRUE)

ChaosGame documentation built on May 11, 2021, 5:07 p.m.