Visualize cells according to spatial coordinates
spatPlot(...)Arguments passed on to spatPlot2D
gobjectgiotto object
show_imageshow a tissue background image
gimagea giotto image
image_namename of a giotto image
group_bycreate multiple plots based on cell annotation column
group_by_subsetsubset the group_by factor column
sdimxx-axis dimension name (default = 'sdimx')
sdimyy-axis dimension name (default = 'sdimy')
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
point_shapeshape of points (border, no_border or voronoi)
point_sizesize of point (cell)
point_alphatransparancy of point
point_border_colcolor of border around points
point_border_strokestroke size of border around points
show_cluster_centerplot center of selected clusters
show_center_labelplot label of selected clusters
center_point_sizesize of center points
center_point_border_colborder color of center points
center_point_border_strokeborder stroke size of center points
label_sizesize of labels
label_fontfacefont of labels
show_networkshow underlying spatial network
spatial_network_namename of spatial network to use
network_colorcolor of spatial network
network_alphaalpha of spatial network
show_gridshow spatial grid
spatial_grid_namename of spatial grid to use
grid_colorcolor of spatial grid
show_other_cellsdisplay not selected cells
other_cell_colorcolor of not selected cells
other_point_sizepoint size of not selected cells
other_cells_alphaalpha of not selected cells
coord_fix_ratiofix ratio between x and y-axis
titletitle of plot
show_legendshow legend
legend_textsize of legend text
legend_symbol_sizesize of legend symbols
background_colorcolor of plot background
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
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_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 visualizations:
spatPlot2D(),
spatPlot3D()
data(mini_giotto_single_cell)
#> Warning: data set ‘mini_giotto_single_cell’ not found
spatPlot(mini_giotto_single_cell)
#> Error: object 'mini_giotto_single_cell' not found
spatPlot(mini_giotto_single_cell, cell_color = 'cell_types', point_size = 3)
#> Error: object 'mini_giotto_single_cell' not found