View source: R/spatial_visualization.R
plot_spat_point_layer_ggplot | R Documentation |
Adapted function from Giotto package Dries et al, 2021, rewrite for use in scdrake package in a SingleCellExperiment object.
plot_spat_point_layer_ggplot(
ggobject,
sdimx = NULL,
sdimy = NULL,
cell_locations_metadata_selected,
cell_locations_metadata_other,
cell_color = NULL,
color_as_factor = T,
cell_color_code = NULL,
cell_color_gradient = c("yellow", "white", "red"),
gradient_midpoint = NULL,
gradient_limits = NULL,
select_cells = NULL,
point_size = 2,
point_alpha = 1,
point_border_col = "lightgrey",
point_border_stroke = 0.1,
label_size = 4,
label_fontface = "bold",
show_other_cells = T,
other_cell_color = "lightgrey",
other_point_size = 1,
show_legend = TRUE
)
ggobject |
An inheriated object from visualized_spots. |
cell_locations_metadata_selected , cell_locations_metadata_other , cell_color , ... |
Inheriated, passed to ggplot2 object. |
A ggplot2
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.