make_chain_circles | R Documentation |
This function generates k
interlocked circular clusters in a
p
-dimensional space. Unlike make_klink_circles()
, the circles
are arranged in a **chain-like structure**, where each circle interlocks
only with its immediate neighbor, resembling links in a chain.
make_chain_circles(n = c(200, 100), p = 4, k = 2, offset = 0.5, angle = 90)
n |
An integer vector of length |
p |
Integer, the dimensionality of the embedding space. Must be
at least 3. Default is |
k |
Integer, the number of circles to generate. Default is |
offset |
Numeric, the positional shift applied to each circle along
its linking axis to ensure interlocking instead of overlap. Default is
|
angle |
Numeric, the rotation angle (in degrees) used when placing
each subsequent circle into its respective plane. Default is |
A data frame (or tibble, depending on gen_multicluster()
)
containing the generated points and cluster assignments.
# Generate two chain-linked circles in 4-D
twochain_circles <- make_chain_circles()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.