
Grouped chord diagrams
plotCohortChordDiagram.RdGrouped chord diagrams
Arguments
- object
A SpatialMap object
- nn
The name of a
nearestNeighborGraphfromobject(character).- feature
The name of a cellMetadata column (character).
- group.1
Vector of Region names, or a column name in
projectMetadataused for grouping. If aprojectMetadatacolumn name is passed,group.2should be NULL. In this case, for each categorical level in the given column, two cohorts are defined:All regions matching that categorical level in the specified
projectMetadatacolumnAll regions not matching that level
- group.2
Vector of Region names. If NULL, looks in
projectMetadatafor a column name matchinggroup.1to create cohorts.- color.pal
A named vector of colors. Names correspond to unique feature values, e.g. for cell type features,
c("tumor_cell" = "red", "epithelial_cell" = "blue")- ...
Arguments passed on to
plot_chord_diagramstart.degreePassed to
circlize::circos.par()cell.paddingPassed to
circlize::circos.par()circle.marginPassed to
circlize::circos.par()facingPassed to
circlize::circos.text()adjPassed to
circlize::circos.text()cexPassed to
circlize::circos.text()