View source: R/visualization.R
CARD.visualize.pie | R Documentation |
Visualize the spatial distribution of cell type proportion in a geom scatterpie plot
CARD.visualize.pie(
proportion,
spatial_location,
colors = NULL,
radius = NULL,
seed = NULL
)
proportion |
Data frame, cell type proportion estimated by CARD in either original resolution or enhanced resolution. |
spatial_location |
Data frame, spatial location information. |
colors |
Vector of color names that you want to use, if NULL, we will use the color palette "Spectral" from RColorBrewer package. |
radius |
Numeric value about the radius of each pie chart, if NULL, we will calculate it inside the function. |
seed |
Seed number about generating the colors if users do not provide the colors, if NULL, we will generate it inside the function |
Returns a ggplot2 figure.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.