addNetworkLayout#
Last Updated: Oct 02, 2023
Description#
Add a network layout for a selected nearest neighbor network
Usage#
addNetworkLayout(
gobject,
spat_unit = NULL,
feat_type = NULL,
nn_network_to_use = "sNN",
network_name = "sNN.pca",
layout_type = c("drl"),
options_list = NULL,
layout_name = "layout",
return_gobject = TRUE
)
Arguments#
|
giotto object |
|
spatial unit |
|
feature type |
|
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) |
Details#
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.
Value#
giotto object with updated layout for selected NN network