Description Usage Arguments Examples

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).

1 2 3 4 5 6 7 8 9 10 |

`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 |

`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). |

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)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.