Closed elineasmit closed 4 years ago
Hi,
there seems to be an argument missing in the following code, causing the labels to not be aligned correctly. The problem is in the final theme, but I cannot figure out the solution.
ggraph(mygraph, layout = 'dendrogram', circular = TRUE) + geom_node_point(aes(filter = leaf, x = x1.05, y=y1.05)) + geom_conn_bundle(data = get_con(from = from, to = to), alpha=0.2, colour="skyblue", width=0.9) + geom_node_text(aes(x = x1.1, y=y1.1, filter = leaf, label=name, angle = angle, hjust=hjust), size=1.5, alpha=1) + theme_void() + theme( legend.position="none", plot.margin=unit(c(0,0,0,0),"cm"), ) + expand_limits(x = c(-1.2, 1.2), y = c(-1.2, 1.2))
Hi,
there seems to be an argument missing in the following code, causing the labels to not be aligned correctly. The problem is in the final theme, but I cannot figure out the solution.
Basic usual argument
ggraph(mygraph, layout = 'dendrogram', circular = TRUE) + geom_node_point(aes(filter = leaf, x = x1.05, y=y1.05)) + geom_conn_bundle(data = get_con(from = from, to = to), alpha=0.2, colour="skyblue", width=0.9) + geom_node_text(aes(x = x1.1, y=y1.1, filter = leaf, label=name, angle = angle, hjust=hjust), size=1.5, alpha=1) + theme_void() + theme( legend.position="none", plot.margin=unit(c(0,0,0,0),"cm"), ) + expand_limits(x = c(-1.2, 1.2), y = c(-1.2, 1.2))