prepare_circos_visualization | R Documentation |
Prepare the data for the circos visualization by incorporating the colors and order of the links, as well as gaps between different cell types
prepare_circos_visualization(circos_links, ligand_colors = NULL, target_colors = NULL, widths = NULL, celltype_order = NULL)
circos_links |
Dataframe from the function |
ligand_colors |
Named vector of colors for each cell type (default: NULL, where colors follow the ggplot default color scheme) |
target_colors |
Named vector of colors for each target gene grouping (default: NULL, where colors follow the ggplot default color scheme) |
widths |
Named list of widths for the different types groupings, including:
|
celltype_order |
Order of the cell types (default: NULL, where cell types are ordered alphabetically, followed by "General"). Cell types are then drawn counter-clockwise in the circos plot. |
A list of four objects, including:
circos_links: Dataframe of weighted ligand-target links
ligand_colors: Named vector of ligands and their colors
order: Vector of order of the ligands and target genes
gaps: Vector of gaps between the different groupings
## Not run:
celltype_order <- c("General", "NK", "B", "DC", "Mono")
ligand_colors <- c("General" = "lawngreen", "NK" = "royalblue", "B" = "darkgreen", "Mono" = "violet", "DC" = "steelblue2")
target_colors <- c("LCMV-DE" = "tomato")
vis_circos_obj <- prepare_circos_visualization(circos_links, ligand_colors, target_colors, celltype_order = celltype_order)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.