Add a network layout for a selected nearest neighbor network
addNetworkLayout(
gobject,
nn_network_to_use = "sNN",
network_name = "sNN.pca",
layout_type = c("drl"),
options_list = NULL,
layout_name = "layout",
return_gobject = TRUE
)
giotto object
kNN or sNN
name of NN network to be used
layout algorithm to use
list of options for selected layout
name for layout
boolean: return giotto object (default = TRUE)
giotto object with updated layout for selected NN network
This function creates layout coordinates based on the provided kNN or sNN.
Currently only the force-directed graph layout "drl", see layout_with_drl
,
is implemented. This provides an alternative to tSNE or UMAP based visualizations.