Description Usage Arguments Value
Produce a new coloring vector being a standard deviation of values of given function at points covererd by each vertex of Ball Mapper graph.
1 | colorByStDevValueOfOtherVariable(outputFromBallMapper, newFunctionOnPoints)
|
outputFromBallMapper |
an output from the BallMapper function |
newFunctionOnPoints |
values of function on points. |
Vector of function values on vertices on Ball Mapper graph. var <- seq(from=0,to=6.3,by=0.1) points <- as.data.frame( cbind( sin(var),cos(var) ) ) values <- as.data.frame(sin(var)) l <- BallMapper(points, values, 0.25) ColorIgraphPlot(l) new_coloring <- colorByStDevValueOfOtherVariable(l,sin(var)) l$coloring <- new_coloring ColorIgraphPlot(l)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.