Skip to content

Latest commit

 

History

History
78 lines (57 loc) · 2.09 KB

12_plotting.md

File metadata and controls

78 lines (57 loc) · 2.09 KB

By Rodrigo Esteves de Lima Lopes Campinas University rll307@unicamp.br


Plotting

Introduction

Our may objective here is to plot the results we collected last script. The grammar of plotting might be a bit overwhelming, but keep in mind it is just a small introduction.

In this tutorial we use ggplot2, a package for plotting in R. Other packages should do the job, but ggplot2 is the most popular across R users.

Plotting:

Boric

textplot_network(gabrielboric.top.fcm, 
                 min_freq = 0.1, 
                 edge_alpha = 0.5, 
                 edge_size = 5,
                 edge_color = 'red')

Boric's most common words

textplot_network(gabrielboric.top.hash, 
                 min_freq = 0.1, 
                 edge_alpha = 0.5, 
                 edge_size = 5,
                 edge_color = 'red')

Boric's most common hashtags

textplot_network(gabrielboric.top.handles, 
                 min_freq = 0.1, 
                 edge_alpha = 0.5, 
                 edge_size = 5,
                 edge_color = 'red')

Boric's most quoted and re-tweeted handles

Piñeda

textplot_network(sebastianpinera.top.fcm, 
                 min_freq = 0.1, 
                 edge_alpha = 0.5, 
                 edge_size = 5,
                 edge_color = 'darkgreen')

Piñedas most common words

textplot_network(sebastianpinera.top.hash, 
                 min_freq = 0.1, 
                 edge_alpha = 0.5, 
                 edge_size = 5,
                 edge_color = 'darkgreen')

Piñedas most common hashtags

textplot_network(sebastianpinera.top.handles, 
                 min_freq = 0.1, 
                 edge_alpha = 0.5, 
                 edge_size = 5,
                 edge_color = 'darkgreen')

Piñedas most common handles