4
ggraph
에서 음모가 방사형 인 경우 repel=T
을 사용하든 아니든간에 레이블이 혼잡해질 수 있습니다.ggraph 방사형 그래프에서 텍스트 레이블을 읽는 방법
라벨을 대화 형으로 만들거나 그래프를 회전하여 라벨을 읽을 수있는 방법이 있습니까?
library(ggraph)
mtcarsDen <- as.dendrogram(hclust(dist(mtcars[1:4], method='euclidean'),
method='ward.D2'))
ggraph(graph = mtcarsDen, layout = 'dendrogram', repel = TRUE, circular = TRUE,
ratio = 0.5) +
geom_edge_elbow() +
geom_node_text(aes(x = x*1.05, y=y*1.05, filter=leaf,
angle = node_angle(x, y), label = label),
size=3, hjust='outward') +
geom_node_point(aes(filter=leaf)) +
coord_fixed() +
ggforce::theme_no_axes()