Visualize cells according to spatial AND dimension reduction coordinates in ggplot mode
spatDimGenePlot3D(
gobject,
expression_values = c("normalized", "scaled", "custom"),
plot_alignment = c("horizontal", "vertical"),
dim_reduction_to_use = "umap",
dim_reduction_name = "umap",
dim1_to_use = 1,
dim2_to_use = 2,
dim3_to_use = NULL,
sdimx = "sdimx",
sdimy = "sdimy",
sdimz = "sdimz",
genes,
cluster_column = NULL,
select_cell_groups = NULL,
select_cells = NULL,
show_other_cells = T,
other_cell_color = "lightgrey",
other_point_size = 1.5,
show_NN_network = FALSE,
nn_network_to_use = "sNN",
nn_network_color = "lightgrey",
nn_network_alpha = 0.5,
network_name = "sNN.pca",
label_size = 16,
genes_low_color = "blue",
genes_mid_color = "white",
genes_high_color = "red",
dim_point_size = 3,
show_spatial_network = FALSE,
spatial_network_name = "Delaunay_network",
spatial_network_color = "lightgray",
spatial_network_alpha = 0.5,
show_spatial_grid = FALSE,
spatial_grid_name = "spatial_grid",
spatial_grid_color = NULL,
spatial_grid_alpha = 0.5,
spatial_point_size = 3,
legend_text_size = 12,
axis_scale = c("cube", "real", "custom"),
custom_ratio = NULL,
x_ticks = NULL,
y_ticks = NULL,
z_ticks = NULL,
show_plot = NA,
return_plot = NA,
save_plot = NA,
save_param = list(),
default_save_name = "spatDimGenePlot3D"
)
giotto object
gene expression values to use
direction to align plot
dimension reduction to use
dimension reduction name
dimension to use on x-axis
dimension to use on y-axis
dimension to use on z-axis
spatial dimension to use on x-axis
spatial dimension to use on y-axis
spatial dimension to use on z-axis
genes to show
cluster column to select groups
select subset of cells/clusters based on cell_color parameter
select subset of cells based on cell IDs
display not selected cells
color of not selected cells
size of not selected cells
show underlying NN network
type of NN network to use (kNN vs sNN)
color of NN network
alpha of NN network
name of NN network to use, if show_NN_network = TRUE
size of labels
color for low expression levels
color for medium expression levels
color for high expression levels
dim reduction plot: point size
show spatial network (boolean)
name of spatial network to use
color of spatial network
alpha of spatial network
show spatial grid (boolean)
name of spatial grid to use
color of spatial grid
alpha of spatial grid
spatial plot: point size
size of legend
the way to scale the axis
customize the scale of the plot
set the number of ticks on the x-axis
set the number of ticks on the y-axis
set the number of ticks on the z-axis
show plots
return plotly object
directly save the plot [boolean]
list of saving parameters, see showSaveParameters
default save name for saving, don't change, change save_name in save_param
plotly
Description of parameters.
Other spatial and dimension reduction gene expression visualizations:
spatDimGenePlot2D()
,
spatDimGenePlot()