Visualize Cells By Spatial Coordinates in 3D¶
-
plotUMAP_3D()
Visualize cells according to dimension reduction coordinates
plotUMAP_3D(
gobject,
dim_reduction_name = "umap",
default_save_name = "UMAP_3D",
...
)
Arguments¶
gobject |
giotto object |
dim_reduction_name |
name of UMAP |
default_save_name |
default save name of UMAP plot |
… |
Arguments passed on to dimPlot3D() |
dim1_to_use |
dimension to use on x-axis |
dim2_to_use |
dimension to use on y-axis |
dim3_to_use |
dimension to use on z-axis |
spat_enr_names |
names of spatial enrichment results to include |
select_cell_groups |
select subset of cells/clusters based on cell_color parameter |
select_cells |
select subset of cells based on cell IDs |
show_other_cells |
display not selected cells |
other_cell_color |
color of not selected cells |
other_point_size |
size of not selected cells |
show_NN_network |
show underlying NN network |
nn_network_to_use |
type of NN network to use (kNN vs sNN) |
network_name |
name of NN network to use, if show_NN_network = TRUE |
color_as_factor |
convert color column to factor |
cell_color |
color for cells (see details) |
cell_color_code |
named vector with colors |
show_cluster_center |
plot center of selected clusters |
show_center_label |
plot label of selected clusters |
center_point_size |
size of center points |
label_size |
size of labels |
edge_alpha |
column to use for alpha of the edges |
point_size |
size of point (cell) |
show_plot |
show plot |
return_plot |
return ggplot object |
save_plot |
directly save the plot [boolean] |
save_param |
list of saving parameters, see showSaveParameters() |
Value¶
A plotly.
Details¶
Short wrapper for UMAP 3D visualization.
UMAP can accept as input the original gene expression matrix (set dim_reduction_to_use=NULL) or the dimension reduced matrix from PCA (default) (dim_reduction_to_use=”pca”).
If principle components are analyzed, then one specifies the dimensions_to_use
.
It is possible to further define the number of neighbors (n_neighbors), number of epochs (n_epochs), and min_dist (see UMAP parameter guide here). The options set_seed and seed_number are helpful to fix the random number generation seed so that the same result is returned each time the function is run.
A plot will be returned in the result.
See also
Other reduced dimension visualizations: dimPlot2D(), dimPlot(), plotPCA_2D(), plotPCA_3D(), plotPCA(), plotTSNE_2D(), plotTSNE_3D(), plotTSNE(), plotUMAP_2D(), plotUMAP_3D(), plotUMAP().