[withR]소셜네트워크분석 — sna패키지의 gplot 옵션

Neo Jeong
Neo Jeong
Nov 1 · 2 min read

#사회네트워크분석입문 — 허명회저. 참조

sna패키지 안의 gplot()함수에는 많은 옵션 들이 있다.

1)배치 관련

gmode= “digraph”, “graph”, “twomode”

mode= “fruchtermanreingold”, “kamadakawai”, “spring”, 고유벡터에 기초한”eigen”, “hall”, “princoord”, 다차원척도법 “mds”, 임의화 “random”, 원 “circle”

displayisolates = T or F, 고립 노드를 그릴 것인가

2)연결선(edge) 관련

userarrows = T or F , 화살표로 나타낼 것인가(T), 선분으로 나타낼 것인가(F)

edge.lwd = 선의 폭 지정

edge.lty = solid, dashed, dotted 선의 유형

edge.col = 선의 색상

arrowhead.cex = 화살머리의 확대 배수

thresh = 선을 이 값 이상인 경우만 표현. 디폴트는 0

usecureve = 연결선을 곡선으로 나타냄

diag = 인접행렬의 대각성분이 있는 경우 T로 놓으면 루프로 표현됨.

3) 노드관련

vertex.cex = 노드 크기의 확대 배수

vertex.col = 노드의 색을 지정한다.

vertex.sides = 노드 다각형에서 변의 수. 12 이상으로 놓으면 거의 원형이 된다.

displaylabels = 노드 레이블을 표시하고자 하는 경우 T

label = 노드 레이블의 지정

boxed.labels = 노드레이블을 사각형으로 테두리하고 싶지 않은 경우 F

label.pos = 노드 레이블의 위치. 0은 중심에서 바깥쪽, 1은 아래, 2는 왼쪽, 3은 위쪽, 4는 오른쪽, 5는 중심.

label.col = 레이블 색상

label.cex, label.lwd, label.lty등이 있음

신나는연구소

신나는 일을 하며 삽시다!

Neo Jeong

Written by

Neo Jeong

#Data Analyst #세상을 보는 데이터 분석가 #책을 읽는 몽상가

신나는연구소

신나는 일을 하며 삽시다!

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade