Network plot based on centrality measure
It will be more meaningful if the vertex size in the plot is proportional to the number of times the user retweets.
In this exercise, you will add attributes such that the vertex size is indicative of the number of times the user retweets.
The retweet network has been pre-loaded as nw_rtweet.
The library igraph has been pre-loaded for this exercise.
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Analyzing Social Media Data in R
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# Create a variable for out-degree
deg_out <- ___(___, mode = c("___"))
deg_out