spatPlot3D
¶
spatPlot3D
Description¶
Visualize cells according to spatial coordinates
Usage¶
spatPlot3D(
gobject,
spat_unit = NULL,
feat_type = NULL,
sdimx = "sdimx",
sdimy = "sdimy",
sdimz = "sdimz",
spat_enr_names = NULL,
point_size = 3,
cell_color = NULL,
cell_color_code = NULL,
select_cell_groups = NULL,
select_cells = NULL,
show_other_cells = T,
other_cell_color = "lightgrey",
other_point_size = 0.5,
other_cell_alpha = 0.5,
show_network = F,
spatial_network_name = "Delaunay_network",
network_color = NULL,
network_alpha = 1,
show_grid = F,
spatial_grid_name = "spatial_grid",
grid_color = NULL,
grid_alpha = 1,
title = "",
show_legend = T,
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 = "spat3D"
)
Arguments¶
Argument |
Description |
---|---|
|
giotto object |
|
spatial unit |
|
feature type |
|
x-axis dimension name (default = ‘sdimx’) |
|
y-axis dimension name (default = ‘sdimy’) |
|
z-axis dimension name (default = ‘sdimy’) |
|
names of spatial enrichment results to include |
|
size of point (cell) |
|
color for cells (see details) |
|
named vector with colors |
|
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 |
|
alpha of not selected cells |
|
show underlying spatial network |
|
name of spatial network to use |
|
color of spatial network |
|
opacity of spatial network |
|
show spatial grid |
|
name of spatial grid to use |
|
color of spatial grid |
|
opacity of spatial grid |
|
title of plot |
|
show 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 plot |
|
return ggplot object |
|
directly save the plot [boolean] |
|
list of saving parameters, see ``showSaveParameters` <#showsaveparameters>`_ |
|
default save name for saving, don’t change, change save_name in save_param |
Value¶
ggplot
Seealso¶
- Other spatial visualizations:
``spatPlot2D` <#spatplot2d>`_ , ``spatPlot` <#spatplot>`_