powered by
Creates a radial plot with automatic label placement to prevent overlaps between nodes and text labels.
plot_radial_distance( distance_result, reference_type, id_col = "barcode", scale_radius = 1, show_labels = TRUE, palette = "Set2", label_padding = 0.15, center_label_expansion = 1.5 )
A ggplot2 object
Data.frame from calculate_nearest_distances()
Name of the reference cell type (center node)
Name of ID column (default: "barcode")
Scaling factor for layout (default: 1)
Whether to show distance labels (default: TRUE)
Color palette name (default: "Set2")
Radial padding for labels (default: 0.15)
Center expansion for labels (default: 1.5)
plot_radial_distance(distance_results,id_col = "Newbarcode", reference_type = "Macrophages",label_padding = 0.3, show_labels = TRUE,palette = "Dark2")
Run the code above in your browser using DataLab