
Set the cell plot theme
cell_theme.RdSets the backend-neutral appearance shared by cell plot renderers. The
contract contains background_color, strip_background_color,
text_color, and text_size. Backends translate these values to their own
theme systems. Backend-specific theme objects are not stored here.
See also
Other cell-plot-modifiers:
cell_annotation(),
cell_grid(),
cell_illuminate(),
cell_node_depth(),
cell_node_scale_alpha(),
cell_node_scale_color(),
cell_node_scale_size()
Examples
se <- ReadPNA_Seurat(minimal_pna_pxl_file())
#> ✔ Created a <Seurat> object with 5 cells and 158 targeted surface proteins
se <- LoadCellGraphs(se, cells = colnames(se)[4], verbose = FALSE) |>
ComputeLayout(layout_method = "spectral")
#> ℹ Computing layouts for 1 graphs
cell_graph <- CellGraphs(se)[[4]]
layout_data <- FetchLayoutData(cell_graph, vars = "CD82", layout_method = "spectral_3d") |>
# Downsample to speed up tests
dplyr::slice_sample(n = 5000)
cell_plot(layout_data) |>
cell_theme(
background_color = "navy",
strip_background_color = "grey30",
text_color = "white",
text_size = 12
)