View source: R/visualization.R
CARD.visualize.gene | R Documentation |
Visualize the spatial distribution of cell type proportion
CARD.visualize.gene(
spatial_expression,
spatial_location,
gene.visualize,
colors = colors,
NumCols
)
spatial_expression |
Data frame, spatial gene expression in either original resolution or enhanced resolution. |
spatial_location |
Data frame, spatial location information. |
gene.visualize |
Vector of selected gene names that are interested to visualize |
colors |
Vector of color names that you want to use, if NULL, we will use the default color scale in virdis palette |
NumCols |
Numeric, number of columns in the figure panel, it depends on the number of cell types you want to visualize. |
Returns a ggplot2 figure.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.