View source: R/baskin_robbins.R
create_ball_mapper_object | R Documentation |
Run mapper using an \varepsilon
-net cover (greedily generated) and the 2D inclusion function as a filter.
create_ball_mapper_object(data, dists, eps)
data |
A data frame. |
dists |
A distance matrix for the data frame. |
eps |
A positive real number for your desired ball radius. |
A list of two data frames, one with node data containing ball size, data points per ball, ball tightness, and one with edge data containing sources, targets, and weights representing overlap strength.
data = data.frame(x = sapply(1:100, function(x) cos(x)), y = sapply(1:100, function(x) sin(x)))
eps = .5
create_ball_mapper_object(data, dist(data), eps)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.