View source: R/place_random_blobs.R
place_random_blobs | R Documentation |
Create Random Blobs in a Matrix
place_random_blobs( m = matrix(0L, nrow = 10, ncol = 15), n_blobs = 5, min_fields = 3, max_fields = min_fields, do_plot = TRUE )
m |
matrix of integer in which to place blobs. Default: 10 x 15-Matrix |
n_blobs |
number of blobs to create. Default: 5 |
min_fields |
minimum number of fields a blob should consist of |
max_fields |
maximum number of fields a blob should consist of. Defaults
to |
do_plot |
if |
matrix in which fields belonging to the same blob have the same integer number and zeros indicate empty fields
set.seed(42) place_random_blobs(n_blobs = 5, min_fields = 5, max_fields = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.