Session Ready
Exercise

More ggnetwork Plotting Options

Just like in the last lesson, ggnetwork also offers methods to quickly generate nice plots. It's important to keep in mind that each package has a different style, which may or may not appeal to you. Recall that ggnetwork works by converting a graph to a dataframe to be plotted by ggplot2. Therefore. all the parameterizations you're used to will be available. This gives you a great degree of flexibility, but could also mean more effort to achieve the aesthetic you desire. We'll repeat the exercise in the previous lesson, but this time using ggnetwork. This will give you a good point of comparison to decide which package you like the best.

The centrality and community membership attributes you created in the last exercise are still present.

Instructions 1/2
undefined XP
  • 1
  • 2
  • Plot a ggnetwork of retweet_graph_smaller.
  • Add a node layer with geom_nodes(), coloring by community membership (comm) and setting the size = 4.