-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I made a platt graph grouped by projection, but would also like to plot the cell_type labels. somehow this gets ignored in plot_annotations
if (plot_labels) {
p <- p + ggrepel::geom_text_repel(data = g %>% select(x,
y, name) %>% distinct(), aes(x, y, label = name),
color = I("black"), box.padding = 0.5)
}
tentative solution
lpm_state_graph = new_cell_state_graph(state_graph, ccs,hide_unlinked_nodes =T, group_nodes_by = "projection_subgroup", label_nodes_by = "cell_type", color_nodes_by = "cell_type")
p<-plot_annotations(lpm_state_graph, node_size = 2, label_nodes_by = "cell_type", plot_labels =TRUE)
p
g <- lpm_state_graph@g
p + ggrepel::geom_text_repel(data = g %>% select(x,
y, name) %>% distinct(), aes(x, y, label = name),
color = I("black"), box.padding = 0.5, size =2)

Metadata
Metadata
Assignees
Labels
No labels