#' Two-Dimensional embedding
#'
#' This function takes object from DiffSOM::Load as input,
#' and clusters cells using EmbedSOM algorithm.
#'
#' @param input An object from DiffSOM::Load.
#' @param colsToUse Column index to use.
#' @param xdim Number of dimension for x-axis.
#' @param ydim Number of dimension for y-axis
#' @param ...
#'
#' @return Date frame with embeded coordinates and cluster information.
#' @import DiffSOM EmbedSOM
#' @export emb
#Algorithms#
emb <- function(input, colsToUse = c(3:53), xdim = 16, ydim = 16, ...) {
ds_embed <- Embed(input, colsToUse = colsToUse, xdim = xdim, ydim = ydim, ...)
ExportData(ds_embed)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.