Visualize cells according to spatial AND dimension reduction coordinates in ggplot mode
spatDimGenePlot(...)Arguments passed on to spatDimGenePlot2D
gobjectgiotto object
show_imageshow a tissue background image
gimagea giotto image
image_namename of a giotto image
expression_valuesgene expression values to use
plot_alignmentdirection to align plot
genesgenes to show
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
dim_point_shapedim reduction points with border or not (border or no_border)
dim_point_sizedim reduction plot: point size
dim_point_alphatransparancy of dim. reduction points
dim_point_border_colcolor of border around points
dim_point_border_strokestroke size of border around points
show_NN_networkshow underlying NN network
show_spatial_networkshow underlying spatial netwok
nn_network_to_usetype of NN network to use (kNN vs sNN)
network_namename of NN network to use, if show_NN_network = TRUE
dim_network_colorcolor of NN network
dim_edge_alphadim reduction plot: column to use for alpha of the edges
scale_alpha_with_expressionscale expression with ggplot alpha parameter
sdimxspatial x-axis dimension name (default = 'sdimx')
sdimyspatial y-axis dimension name (default = 'sdimy')
spatial_network_namename of spatial network to use
spatial_network_colorcolor of spatial network
show_spatial_gridshow spatial grid
grid_colorcolor of spatial grid
spatial_grid_namename of spatial grid to use
spat_point_shapespatial points with border or not (border or no_border)
spat_point_sizespatial plot: point size
spat_point_alphatransparancy of spatial points
spat_point_border_colcolor of border around points
spat_point_border_strokestroke size of border around points
spat_edge_alphaedge alpha
cell_color_gradientvector with 3 colors for numeric data
gradient_midpointmidpoint for color gradient
gradient_limitsvector with lower and upper limits
show_legendshow legend
legend_textsize of legend text
dim_background_colorcolor of plot background for dimension plot
spat_background_colorcolor of plot background for spatial plot
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 plots
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 gene expression visualizations:
spatDimGenePlot2D(),
spatDimGenePlot3D()
data(mini_giotto_single_cell)
#> Warning: data set ‘mini_giotto_single_cell’ not found
all_genes = slot(mini_giotto_single_cell, 'gene_ID')
#> Error: object 'mini_giotto_single_cell' not found
selected_genes = all_genes[1]
#> Error: object 'all_genes' not found
spatDimGenePlot(mini_giotto_single_cell, genes = selected_genes,
dim_point_size = 3, spat_point_size = 3,
cow_n_col = 1, plot_alignment = 'horizontal')
#> Error in spatDimGenePlot(mini_giotto_single_cell, genes = selected_genes, dim_point_size = 3, spat_point_size = 3, cow_n_col = 1, plot_alignment = "horizontal"): could not find function "spatDimGenePlot"