View source: R/visualization.R
CARD.visualize.prop | R Documentation |
Visualize the spatial distribution of cell type proportion
CARD.visualize.prop(
proportion,
spatial_location,
ct.visualize = ct.visualize,
colors = c("lightblue", "lightyellow", "red"),
NumCols,
pointSize = 3
)
proportion |
Data frame, cell type proportion estimated by CARD in either original resolution or enhanced resolution. |
spatial_location |
Data frame, spatial location information. |
ct.visualize |
Vector of selected cell type 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 c("lightblue","lightyellow","red") |
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.