View source: R/make_clusters.R
make_clusters | R Documentation |
Make circular clusters
make_clusters( n_clust, centers = "random", c_range, radii = c(1, 5), density, categorical = FALSE, seed = NULL )
n_clust |
An integer number of clusters to generate. |
centers |
If "random" then centers are randomly generated from the c_range sequence. Otherwise, a list of cartesian coordinates for cluster centers should be provided. |
c_range |
Square Cartesian space from which centers can be drawn. Expressed as a vector of two integers. |
radii |
A vector of two integers, the range to choose the radius of each cluster from. |
density |
The relative number of points per cluster. A function of the cluster radius and beta distribution. |
categorical |
A fractional value if provided. Determines how useful a categorical variable should be with 1 being the most useful. |
seed |
Random seed to use to make the results reproducible. |
Dataframe, a set of labeled 2-d clusters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.