View source: R/gemm_random_walk.R
gemm_random_walk | R Documentation |
Create random walks in ggplot
gemm_random_walk( n = sample(seq(1000, 10000, 1000), 1), random_min = -1, step_opts = NULL, random_max = 1, random_min_y = NULL, random_min_x = NULL, random_max_y = NULL, random_max_x = NULL, exponent_min = 1, exponent_max = 4, exponent_min_y = NULL, exponent_min_x = NULL, exponent_max_y = NULL, exponent_max_x = NULL, color = sample(grDevices::colors(), 1), fun = switch(sample(1:2, 1), sin, cos), xfun = NULL, yfun = NULL, polar = sample(c(TRUE, FALSE), 1), save_args = NULL, seed = NULL )
n |
Number of steps to take in the walk |
random_min |
The minimum and maximum values that will be used to generate "seed" multipliers. If the x- and y- variants are NULL, they will inherit from the untagged variants. |
random_max |
The minimum and maximum values that will be used to generate "seed" multipliers. If the x- and y- variants are NULL, they will inherit from the untagged variants. |
random_min_y |
The minimum and maximum values that will be used to generate "seed" multipliers. If the x- and y- variants are NULL, they will inherit from the untagged variants. |
random_min_x |
The minimum and maximum values that will be used to generate "seed" multipliers. If the x- and y- variants are NULL, they will inherit from the untagged variants. |
random_max_y |
The minimum and maximum values that will be used to generate "seed" multipliers. If the x- and y- variants are NULL, they will inherit from the untagged variants. |
random_max_x |
The minimum and maximum values that will be used to generate "seed" multipliers. If the x- and y- variants are NULL, they will inherit from the untagged variants. |
exponent_min |
The minimum and maximum values that will be used to generate exponential multipliers. If the x- and y- variants are NULL, they will inherit from the untagged variants. |
exponent_max |
The minimum and maximum values that will be used to generate exponential multipliers. If the x- and y- variants are NULL, they will inherit from the untagged variants. |
exponent_min_y |
The minimum and maximum values that will be used to generate exponential multipliers. If the x- and y- variants are NULL, they will inherit from the untagged variants. |
exponent_min_x |
The minimum and maximum values that will be used to generate exponential multipliers. If the x- and y- variants are NULL, they will inherit from the untagged variants. |
exponent_max_y |
The minimum and maximum values that will be used to generate exponential multipliers. If the x- and y- variants are NULL, they will inherit from the untagged variants. |
exponent_max_x |
The minimum and maximum values that will be used to generate exponential multipliers. If the x- and y- variants are NULL, they will inherit from the untagged variants. |
color |
Arguments passed to [ggplot2::geom_point]. |
fun |
The function to be applied to generate point values. If the x- and y- variants are NULL, they will inherit from the untagged variant. |
xfun |
The function to be applied to generate point values. If the x- and y- variants are NULL, they will inherit from the untagged variant. |
yfun |
The function to be applied to generate point values. If the x- and y- variants are NULL, they will inherit from the untagged variant. |
polar |
Logical: use 'coord_polar'? |
save_args |
A list of arguments to pass to 'ggsave'. If NULL, plots are not saved. |
seed |
The random seed to use. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.