| simulate_multiscale_overlap | R Documentation |
Generate spatial patterns with multiple circular centers at fixed positions. Similar to simulate_multiscale but with centers placed at fixed locations for reproducible pattern generation. Creates concentric circle patterns with inner circle A and outer ring B at various radius combinations.
simulate_multiscale_overlap(
grid_size = 60,
n_centers = 3,
Ra_seq = c(10, 5, 1),
Rb_seq = c(10, 5, 1),
seed = NULL,
verbose = TRUE
)
grid_size |
Size of the spatial grid (default: 60) |
n_centers |
Number of pattern centers to generate. If 1, center is placed at grid center. If > 1, centers are randomly placed but fixed by seed (default: 3) |
Ra_seq |
Vector of inner circle radii (default: c(10, 5, 1)) |
Rb_seq |
Vector of outer ring radii (default: c(10, 5, 1)) |
seed |
Random seed for reproducible center placement (default: 123) |
verbose |
Logical; if TRUE, show progress bar and messages (default: TRUE) |
List of data frames, each containing X, Y coordinates and signal_1, signal_2 binary signals
# Generate multi-center patterns with fixed centers
patterns <- simulate_multiscale_overlap()
# Single center at grid center
patterns_single <- simulate_multiscale_overlap(n_centers = 1)
# Custom parameters with multiple centers
Ra_seq <- seq(from = 10, to = 3, length.out = 4)
Rb_seq <- seq(from = 15, to = 2, length.out = 4)
patterns <- simulate_multiscale_overlap(
Ra_seq = Ra_seq,
Rb_seq = Rb_seq,
n_centers = 2,
seed = 456
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.