Text behind dots

Hi R community,

I am in the process of an exam and have encountered a minor problem. I have created clusters in my data sample using this formula:
antal <- length(unique(V(medicon_comp_stoerste)$community))
mine_farver <- colorRampPalette(rev(pal_classic))(antal) # en anden mulighed
ggraph(medicon2_layout) +
geom_node_text(aes(label=name),size=1, color = 'black') +
geom_edge_link0(aes(filter=community!='9999', color=community), width=0.6, alpha=0.55) +
geom_edge_link0(aes(filter=community=='9999'), color='black', width=0.6, alpha=0.35) +
geom_node_point(aes(color=community), alpha=0.95, size=0.6) +
theme_graph(base_family = 'Helvetica') +
geom_mark_ellipse(data=medicon2_layout, aes(x=x, y=y, color=community), alpha=0.9) +
scale_edge_color_manual(values=mine_farver) +
scale_color_manual(values=mine_farver)
ggsave('output/medicon_cluster_circles.png', width=30, height=17.5, unit='cm')

However, my question is whether I can put the text in front of my "points/dots" so that it becomes more readable. I've tried with geom_text, but unfortunately, it doesn't work.

Does anyone have a solution for this?

Thank you in advance for your help

Best wishes
Anders

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.