Visualize numerical features of cells according to spatial AND dimension reduction coordinates in 2D
spatDimCellPlot(...)Arguments passed on to spatDimCellPlot2D
gobjectgiotto object
show_imageshow a tissue background image
gimagea giotto image
image_namename of a giotto image
plot_alignmentdirection to align plot
spat_enr_namesnames of spatial enrichment results to include
cell_annotation_valuesnumeric cell annotation columns
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
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_shapedim reduction points with border or not (border or no_border)
dim_point_sizesize of points in dim. reduction space
dim_point_alphatransparancy of dim. reduction points
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 spatial center points
spat_center_point_border_colborder color of the spatial center points
spat_center_point_border_strokestroke size of the 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)
nn_network_namename of NN network to use, if show_NN_network = TRUE
dim_edge_alphacolumn to use for alpha of the edges
spat_show_networkshow spatial network
spatial_network_namename of spatial network to use
spat_network_colorcolor of spatial network
spat_network_alphaalpha of spatial network
spat_show_gridshow spatial grid
spatial_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
coord_fix_ratioratio for coordinates
cow_n_colcowplot param: how many columns
cow_rel_hcowplot param: relative height
cow_rel_wcowplot param: relative width
cow_aligncowplot param: how to align
show_legendshow legend
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.
Other spatial and dimension reduction cell annotation visualizations:
spatDimCellPlot2D()
data(mini_giotto_single_cell)
#> Warning: data set ‘mini_giotto_single_cell’ not found
# combine all metadata
combineMetadata(mini_giotto_single_cell, spat_enr_names = 'cluster_metagene')
#> Warning: restarting interrupted promise evaluation
#> Warning: restarting interrupted promise evaluation
#> Error: object 'mini_giotto_single_cell' not found
# visualize total expression information
spatDimCellPlot(mini_giotto_single_cell, cell_annotation_values = 'total_expr')
#> Warning: restarting interrupted promise evaluation
#> Warning: restarting interrupted promise evaluation
#> Warning: restarting interrupted promise evaluation
#> Warning: restarting interrupted promise evaluation
#> Error: object 'mini_giotto_single_cell' not found
# visualize enrichment results
spatDimCellPlot(mini_giotto_single_cell,
spat_enr_names = 'cluster_metagene',
cell_annotation_values = c('1','2'))
#> Warning: restarting interrupted promise evaluation
#> Warning: restarting interrupted promise evaluation
#> Warning: restarting interrupted promise evaluation
#> Warning: restarting interrupted promise evaluation
#> Error: object 'mini_giotto_single_cell' not found