View source: R/projectedNeighbors.R
asNNGraph | R Documentation |
Function to produce idx and dist representation of a VeloViz graph
asNNGraph(vig)
vig |
output of |
idx
numVertices x numNeighbors matrix, where each row i contains indices of vertex i's neighbors
dist
numVertices x numNeighbors matrix, where each row i contains distances from vertex i to its neighbors
data(vel) curr <- vel$current proj <- vel$projected vv <- buildVeloviz(curr = curr, proj = proj, normalize.depth = TRUE, use.ods.genes = FALSE, alpha = 0.05, pca = TRUE, nPCs = 3, center = TRUE, scale = TRUE, k = 10, similarity.threshold = -1, distance.weight = 1, distance.threshold = 1, weighted = TRUE, verbose = FALSE) asNNGraph(vv)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.