View source: R/visualization.R
CARD.visualize.prop.2CT | R Documentation |
Visualize the spatial distribution of two cell type proportions on the same plot
CARD.visualize.prop.2CT(
proportion,
spatial_location,
ct2.visualize = ct2.visualize,
colors = NULL
)
proportion |
Data frame, cell type proportion estimated by CARD in either original resolution or enhanced resolution. |
spatial_location |
Data frame, spatial location information. |
ct2.visualize |
Vector of selected two cell type names that are interested to visualize, here we only focus on two cell types |
colors |
list of color names that you want to use for each cell type, if NULL, we will use the default color scale list list(c("lightblue","lightyellow","red"),c("lightblue","lightyellow","black") |
Returns a ggplot2 figure.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.