Visualize cells according to spatial AND dimension reduction coordinates 2D
spatDimPlot(...)Arguments passed on to spatDimPlot2D
gobjectgiotto object
show_imageshow a tissue background image
gimagea giotto image
image_namename of a giotto image
plot_alignmentdirection to align plot
dim_reduction_to_usedimension reduction to use
dim_reduction_namedimension reduction name
dim1_to_usedimension to use on x-axis
dim2_to_usedimension to use on y-axis
sdimx= spatial dimension to use on x-axis
sdimy= spatial dimension to use on y-axis
spat_enr_namesnames of spatial enrichment results to include
cell_colorcolor for cells (see details)
color_as_factorconvert color column to factor
cell_color_codenamed vector with colors
cell_color_gradientvector with 3 colors for numeric data
gradient_midpointmidpoint for color gradient
gradient_limitsvector with lower and upper limits
select_cell_groupsselect subset of cells/clusters based on cell_color parameter
select_cellsselect subset of cells based on cell IDs
dim_point_shapepoint with border or not (border or no_border)
dim_point_sizesize of points in dim. reduction space
dim_point_alphatransparancy of point in dim. reduction space
dim_point_border_colborder color of points in dim. reduction space
dim_point_border_strokeborder stroke of points in dim. reduction space
spat_point_shapeshape of points (border, no_border or voronoi)
spat_point_sizesize of spatial points
spat_point_alphatransparancy of spatial points
spat_point_border_colborder color of spatial points
spat_point_border_strokeborder stroke of spatial points
dim_show_cluster_centershow the center of each cluster
dim_show_center_labelprovide a label for each cluster
dim_center_point_sizesize of the center point
dim_center_point_border_colborder color of center point
dim_center_point_border_strokestroke size of center point
dim_label_sizesize of the center label
dim_label_fontfacefont of the center label
spat_show_cluster_centershow the center of each cluster
spat_show_center_labelprovide a label for each cluster
spat_center_point_sizesize of the center point
spat_center_point_border_colborder color of spatial center points
spat_center_point_border_strokeborder strike size of spatial center points
spat_label_sizesize of the center label
spat_label_fontfacefont of the center label
show_NN_networkshow underlying NN network
nn_network_to_usetype of NN network to use (kNN vs sNN)
network_namename of NN network to use, if show_NN_network = TRUE
nn_network_alphacolumn to use for alpha of the edges
show_spatial_networkshow spatial network
spat_network_namename of spatial network to use
spat_network_colorcolor of spatial network
spat_network_alphaalpha of spatial network
show_spatial_gridshow spatial grid
spat_grid_namename of spatial grid to use
spat_grid_colorcolor of spatial grid
show_other_cellsdisplay not selected cells
other_cell_colorcolor of not selected cells
dim_other_point_sizesize of not selected dim cells
spat_other_point_sizesize of not selected spat cells
spat_other_cells_alphaalpha of not selected spat cells
dim_show_legendshow legend of dimension reduction plot
spat_show_legendshow legend of spatial plot
legend_textsize of legend text
legend_symbol_sizesize of legend symbols
dim_background_colorbackground color of points in dim. reduction space
spat_background_colorbackground color of spatial points
vor_border_colorborder colorr for voronoi plot
vor_max_radiusmaximum radius for voronoi 'cells'
vor_alphatransparancy of voronoi 'cells'
axis_textsize of axis text
axis_titlesize of axis title
show_plotshow plot
return_plotreturn ggplot object
save_plotdirectly save the plot [boolean]
save_paramlist of saving parameters, see showSaveParameters
default_save_namedefault save name for saving, don't change, change save_name in save_param
ggplot
Description of parameters.
spatDimPlot2D and spatDimPlot3D for 3D visualization.
Other spatial and dimension reduction visualizations:
spatDimPlot2D(),
spatDimPlot3D()
data(mini_giotto_single_cell)
#> Warning: data set ‘mini_giotto_single_cell’ not found
spatDimPlot(mini_giotto_single_cell)
#> Warning: restarting interrupted promise evaluation
#> Warning: restarting interrupted promise evaluation
#> Warning: restarting interrupted promise evaluation
#> Error: object 'mini_giotto_single_cell' not found
spatDimPlot(mini_giotto_single_cell, cell_color = 'cell_types',
spat_point_size = 3, dim_point_size = 3)
#> Warning: restarting interrupted promise evaluation
#> Warning: restarting interrupted promise evaluation
#> Warning: restarting interrupted promise evaluation
#> Error: object 'mini_giotto_single_cell' not found