View source: R/Seurat.Utils.Metadata.R
plotMetadataCategPie | R Documentation |
Generates a pie chart visualizing the distribution of categories within a specified metadata column of a Seurat object.
plotMetadataCategPie(
metacol = "Singlet.status",
plot_name = paste(metacol, "distribution"),
obj = combined.obj,
max.categs = 20,
both_pc_and_value = TRUE,
subtitle = NULL,
labels = NULL,
LegendSide = FALSE,
...
)
metacol |
The metadata column to visualize. |
plot_name |
Name of the plot to generate. |
obj |
Seurat object containing the metadata. Default: |
max.categs |
The maximum number of categories to display in the pie chart. If the number of categories exceeds this value, an error is thrown. |
both_pc_and_value |
If |
subtitle |
Optional subtitle for the pie chart. |
labels |
Optional labels for the pie chart. |
... |
Additional arguments to pass to the pie chart plotting function. |
A pie chart visualizing the distribution of categories within the specified metadata column.
## Not run:
plotMetadataCategPie(
metacol = "Singlet.status",
plot_name = "Singlet Status Distribution",
obj = combined.obj,
max.categs = 20,
both_pc_and_value = TRUE
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.