Visualizing Churners
In the previous exercises, you noticed that it can be difficult to visualize a large network. Now you will visualize only the churners in the network by conditioning on the churn attribute.
Latihan ini adalah bagian dari kursus
Predictive Analytics using Networked Data in R
Petunjuk latihan
- Create a new
igraphobject calledchurnerNetwork.- Use the function
induced_subgraph()to generate a subgraph of the already existingnetwork. - Select the nodes that have the node attribute
churnequal to 1.
- Use the function
- Visualize
churnerNetworkusingplot().
Latihan interaktif praktis
Cobalah latihan ini dengan menyelesaikan kode contoh berikut.
# Create a subgraph with only churners
churnerNetwork <- ___(network,
v = V(network)[which(___(network)$___ == 1)])
# Plot the churner network
plot(___, vertex.label = NA, vertex.size = 2)