Docsity

Facebook/Twitter Data Analysis, Essays (university) of Data Mining

Toggle sidebar
bg1
Abstract. The main objective of this project is to study how to extract meaningful information from
a gigantic data on Social media called ā€œBig Dataā€. The role of social media in information
acquisition process is immense today. Analyzing large quantities of readily available data from
social media has created new insights, opportunities to understand and influence how people
think and act (larger percentage of ā€œpeopleā€ in this context refers to organizations). This project
extracts and analyze ā€˜big data’ on three (3) major social media (Twitter, Facebook and Instagram).
Chapter 1 - INTRODUCTION
We live in an age of big data. With billions of people spending countless hours on social media to
share, communicate, connect, interact, and create user-generated data at an unprecedented rate (with
Facebook alone generating over 500 TB of data each day), social media has become one unique
source of Big Data. This source of rich data provides unparalleled opportunities and great potential for
research and development. Social media data differs from traditional data we are familiar with in data
mining. Thus, new computational methods are needed to mine the data. Social media data is noisy,
free-format, of varying length, and multimedia.
Furthermore, social relations among the entities (called Social Networks (SN)), form an inseparable
part of social media data; hence, it is important that social theories and research methods be
employed with statistical and data mining methods. It is therefore a favorable time for social media
mining. Social media mining is an interdisciplinary field at the crossroad of disparate disciplines deeply
rooted in computer science and social sciences. The fast-growing interests and intensifying need to
harness social media data require research and the development of tools for finding insights from big
social media data called Big Data. This project mined a couple of Social Media Platforms (SMP),
Analyze those data to extract insights from it, it also looked at social media challenges and
fundamental concepts and algorithms for social media mining.
Because many social interactions currently take place in online networks, social scientists have
access to unprecedented amounts of information about social interaction. Prior to the advent of such
online networks, these investigations required resource-intensive activities such as random trials,
surveys, and manual data collection to gather even small data sets. Now, massive amounts of
information about social networks and social interactions are recorded. This wealth of big data can
allow social scientists to study social interactions on a scale and at a level of detail that has never
before been possible. But, my goal in this project extract big data on various social media platform and
analyze the Trend/User Behavior during events in online social networks. A common misconception is
that you need a data scientist, analyst or analytics professional. But the truth is, you can gather,
measure and analyze social media data with the right tools and mindset.
Finally, I put a brief conclusion together of how to analyze and extract the hidden opportunity/insight
on social media platforms’ big data.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Facebook/Twitter Data Analysis and more Essays (university) Data Mining in PDF only on Docsity!

Abstract. The main objective of this project is to study how to extract meaningful information from

a gigantic data on Social media called ā€œBig Dataā€. The role of social media in information

acquisition process is immense today. Analyzing large quantities of readily available data from

social media has created new insights, opportunities to understand and influence how people

think and act (larger percentage of ā€œpeopleā€ in this context refers to organizations). This project

extracts and analyze ā€˜big data’ on three (3) major social media (Twitter, Facebook and Instagram).

Chapter 1 - INTRODUCTION

We live in an age of big data. With billions of people spending countless hours on social media to share, communicate, connect, interact, and create user-generated data at an unprecedented rate (with Facebook alone generating over 500 TB of data each day), social media has become one unique source of Big Data. This source of rich data provides unparalleled opportunities and great potential for research and development. Social media data differs from traditional data we are familiar with in data mining. Thus, new computational methods are needed to mine the data. Social media data is noisy, free-format, of varying length, and multimedia.

Furthermore, social relations among the entities (called Social Networks (SN)), form an inseparable part of social media data; hence, it is important that social theories and research methods be employed with statistical and data mining methods. It is therefore a favorable time for social media mining. Social media mining is an interdisciplinary field at the crossroad of disparate disciplines deeply rooted in computer science and social sciences. The fast-growing interests and intensifying need to harness social media data require research and the development of tools for finding insights from big social media data called Big Data. This project mined a couple of Social Media Platforms (SMP), Analyze those data to extract insights from it, it also looked at social media challenges and fundamental concepts and algorithms for social media mining.

Because many social interactions currently take place in online networks, social scientists have access to unprecedented amounts of information about social interaction. Prior to the advent of such online networks, these investigations required resource-intensive activities such as random trials, surveys, and manual data collection to gather even small data sets. Now, massive amounts of information about social networks and social interactions are recorded. This wealth of big data can allow social scientists to study social interactions on a scale and at a level of detail that has never before been possible. But, my goal in this project extract big data on various social media platform and analyze the Trend/User Behavior during events in online social networks. A common misconception is that you need a data scientist, analyst or analytics professional. But the truth is, you can gather, measure and analyze social media data with the right tools and mindset.

Finally, I put a brief conclusion together of how to analyze and extract the hidden opportunity/insight on social media platforms’ big data.

Chapter 2 - Background to Study (Social Media & Big Data)

2.1 Social Media Background

2.1.1a Social Media

Social media is a form of electronic communication which facilitates interaction based on certain interests and characteristics. Social media are media for social interaction, using highly accessible and scalable publishing techniques. Social media use web-based technologies to transform and broadcast media monologues into social dialogues. They support the democratization of knowledge and information and transform people from content consumers to content producers. Social media are elements of the new media and according to Danny Shea in The Huffington Post accessed 20th June 2010 have become the highest activity on the internet. The rapid growth of social media activities that has been observed over the last two to three years is indicative of its entry into mainstream culture and its integration into the daily lives of many people. In parallel with this, social media have also gained considerable attention from the academic and business worlds.

2.1.1b Understanding Social Media

The Internet and the information age have been responsible for revolutionizing the way we humans interact with each other in the 21st Century. Almost everyone uses some form of electronic communication, be it a laptop, tablet, smartphone or a personal computer. Social media is built upon the concept of platforms where people use computer-mediated communication (CMC) methods to communicate with others. This can range from instant messaging, emails, and chat rooms to social forums and social networking. To understand social media, you need to understand the origins of legacy or traditional media which gradually evolved into social media. Entities like the popular television, newspapers, radio, movies, books and magazines are various ways of sharing and consuming information, ideas and opinions. It's important to remember that social media has not replaced the older legacy based media; they co-exist peacefully together as we use and consume them both in our day-to-day lives.

Legacy media typically follow a one-way communication system. For instance, I can always read a magazine or watch a show on the television or get updated about the news from newspapers, but I cannot voice my opinions or share my ideas using the same media instantly. The communication mechanism in the various forms of social media is a two-way street, where audiences can share information and ideas and others can consume them and voice their own ideas, opinions and feedback on the same, and even share their own content based on what they see.

Social media is used in various ways and media can be grouped into distinct buckets by the nature of its usage and its features. Here I mentioned some social media grouping:

ļ‚· Micro-blogging platforms, like Twitter and Tumblr ļ‚· Blogging platforms, like WordPress, Blogger and Medium ļ‚· Instant messaging application, like WhatsApp and Hangouts ļ‚· Networking platforms, like Facebook and LinkedIn ļ‚· Photo sharing platforms, like Instagram and Flickr ļ‚· Video sharing platforms, like YouTube and Vimeo

New ways for community formation

Though notions of virtual communities have existed since the beginning of online applications, SMP support new ways for people to connect between themselves. Users of these sites may choose to communicate through various digital objects, such as tags and in-built applications within the SMP, such as the 'visual shelf' application in Facebook. Users may join a community of book readers, connecting through books they have liked. Bottom-up activities SMP provide the ideal platforms through which users with similar values and interests can come together to collaborate effectively and cheaply. For instance, doctors can share and double check rare medical cases on health SMP such as Within3, or activists can organize a protest through sites like Care2. Ease of use A major attribute of SMP popularity is their simplicity. Anyone with basic internet skills can create and manage an online SMP presence. Prior to SMP, users gained an online presence by having a personal homepage. The drawbacks were that these homepages are not easy to create and development and hosting of the site often incur costs. In contrast, SMP are free of charge and open for anyone to join. Most of them require registration, while others limit membership through an invitation from members who are already members of the site. Reorganization of Internet geography

SMP support new points of entry to the internet: people's personal worlds. Until recently, people spoke of the internet in metaphors of places (cities, addresses, and homepages). SMP have shifted such location-based metaphors to personal ones (profiles, blogs, my pictures, my space etc.).

Table 2.1 Characteristics of Social Media Platforms

Taking all these characteristics together, we can observe significant changes in how users network and operate their social contacts according to different social environments

2.1.4 Social Media Platform by Number, 2017.

The spread of social media is not hard to notice, and it has forever changed how people spend their time online. We now have 2.8 billion social media users worldwide — 52% of whom are on one or two platforms consistently.

The breakdown of social media trends among platforms is shown below:

Figure 2.1 Social Media Platform statistic 2017 [Source: https://socialfiremedia.com/]

Each social media platform has its own demographic of users, giving advertisers a meaningful glimpse into which platforms will be best suited for their advertising needs.

2.1.5 Social Media advantages and significance

Social media has gained immense popularity and importance so that today almost everyone can't stay away from it. Not only is social media a medium for people to express their views, but also a very powerful tool which can be used by businesses to target new and existing customers and increase revenue. Some main advantages of social media are:

  1. Cost savings: Social media allows businesses to have branded pages and to post sponsored content and advertisements for a fraction of the cost.
  2. Networking: With social media, you can build your social as well as professional network with people across the globe.
  3. Ease of use: It is quite easy to get started with social media. All you need is to create an account by registering your details in the application or website and within minutes you are ready to go.
  4. Global audience: With social media, you can make your content reach out to a global audience across the world.
  5. Prompt feedback: Businesses and organizations can get prompt feedback on their new product launches and services being used directly from the users.

2.1.8 Social media mining application process

This section briefly discusses the overall process for building a social media mining application. The process can be summarized in the following steps:

  1. Authentication
  2. Data collection
  3. Data cleaning and pre-processing
  4. Modeling and analysis
  5. Result presentation

2.1.9 Collecting Social Media Data

It is possible to manually collect social media data in a number of ways - copying, screen grabbing, note-taking, and saving web-pages. However, where large volumes of data are involved, the most appropriate method is to collect the data automatically. This is done through connection to a platform’s ā€˜Application Programming Interface’ (ā€˜API’). It is also possible to acquire large amount of social media data via a licensed data provider. These are often third party re-sellers.

The API is a portal that acts as a technical gatekeeper of the data held by the social media platform. They allow an external computer system to communicate with and acquire information from the social media platform. Each API differs in the rules they set for this access: the type of data they allow researchers to access, the format they produce this data in, and the quantities that they produce it in. Some APIs can deliver historical data stretching back months or years, whilst others only deliver very recent content. Some deliver a random selection of social media data taken from the platform, whilst others deliver data that matches the queries – usually keywords selected by the analyst. In general, all APIs produce data in a consistent, ā€˜structured’ format, and in large quantities. Facebook, Instagram and Twitter’s APIs also produce ā€˜meta-data’ – information about the data itself, including information about the user, their followers, and profile. Along with Facebook, Instagram and Twitter, most major social media platforms allow API access for researchers in some form. The Facebook API relevant to social media research is the ā€˜Graph API’, which can be directly accessed online with Facebook’s Graph API Explorer, or via Facebook-approved third party commercial re-sellers of data, like DiscoverText or DataSift. The difference between Graph API Explorer and a third party front end is that the third party software is designed to gather large amounts of data via the Explorer and present them in a way that is conducive to detailed analysis.

The most prolific and heavily researched provider of social media data for research is Twitter. Twitter has three different APIs that are available to researchers. Twitter’s ā€˜search’ API returns a collection of relevant tweets matching a specified query (word match) from an index that extends up to roughly a week in the past. Its ā€˜filter’ API streams tweets that contain one of a number of keywords in real time. Its ā€˜sample’ API returns a small number (approximately 1 per cent) of all public tweets in real time.

There are other ways to extract social media data, like the native APIs, Custom Applications, Excel tools, and more. One of the easiest for data extraction AND visualization is NodeXL. It allows for fairly

effortless extraction from multiple networks (Facebook, YouTube, Twitter, etc.) straight out of Excel. It also allows you to visualize and customize them directly inside Excel, but I required a license to get the best out of this software, therefore, I let it go.

For Facebook data, I use an actual Facebook app called NetVizz. NetVizz allows you to export your own ā€œFriendā€ and ā€œLikeā€ networks as well as ā€œPage Likeā€ networks. Examining Page Like Networks is a great way to analyze audience affinities and learn more about target audiences by understanding common interest and connections. I also use Facebook Graph API. NetVizz is available at https://apps.facebook.com/netvizz/.

2.1.10 Social Network Theory (SNT)

Social Network Theory is the study of how people, organizations, or groups interact with others inside their network. There are three primary types of social networks:

Egocentric networks are connected with a single node or individual (e.g., you and all your friends and relatives).

Socio-centric networks are closed networks by default. Two commonly-used examples of this type of network are children in a classroom or workers inside an organization.

Open system networks are networks where the boundary lines are not clearly defined, which makes this type of network typically the most difficult to study. The type of socio-political network I’m analyzing in this project is an example of an open system network.

Social networks are considered complex networks, since they display non-trivial topological features, with patterns of connection between their elements that are neither purely regular nor purely random. Social network analysis examines the structure of relationships between social entities. These entities are often people, but may also be social groups, political organizations, financial networks, residents of a community, citizens of a country, and so on. The empirical study of networks has played a central role in social science, and many of the mathematical and statistical tools used for studying networks were first developed in sociology.

2.2 Big data Background

2.2.1 What’s Big Data

Wikipedia defines Big Data as "a collection of data sets so large and complex that it becomes difficult to process using the available database management tools. The challenges include how to capture, curate, store, search, share, analyze and visualize Big Dataā€ [Wikipedia.org. 2017. Big Data. https://en.wikipedia.org/wiki/Big_data]. In today's environment, we have access to more types of data. These data sources include online transactions, social networking activities, mobile device services, internet gaming etc.

Big Data is a collection of data sets that are large and complex in nature. They constitute both structured and unstructured data that grow large so fast that they are not manageable by traditional relational database systems or conventional statistical tools. Big Data is defined as any kind of data source that has at least three shared characteristics:

ļ‚· Extremely large Volumes of data ļ‚· Extremely high Velocity of data ļ‚· Extremely wide Variety of data

According to Big Data: Concepts, Methodologies, Tools, and Applications, Volume I by Information Resources Management Association (IRMA), "organizations today are at the tipping point in terms of managing data. Data sources are ever expanding. Data from Facebook, Twitter, Instagram, YouTube, Google etc., are to grow 50X in the next 10 years. Over 2.5 Exabyte of data is generated every day. Some of the sources of huge volume of data are:

  1. A typical large stock exchange captures more than 1 TB of data every day.
  2. There are over 5 billion mobile phones in the world which are producing enormous amount of data on daily basis.
  3. YouTube users upload more than 48 hours of video every minute.
  4. Large social networks such as Twitter and Facebook capture more than 10 TB of data daily.
  5. There are more than 30 million networked sensors in the world which further produces TBs of data every day. [Resources Management Association (IRMA). 2016. Information. "Chapter 1 - Big Data Overview". Big Data: Concepts, Methodologies, Tools, and Applications, Volume I]

Structured and semi-structured formats have some limitations with respect to handling large quantities of data. Hence, in order to manage the data in the Big Data world, new emerging approaches are required, including document, graph, columnar, and geospatial database architectures. Collectively, these are referred to as NoSQL, or not only SQL, databases. In essence the data architectures need to be mapped to the types of transactions. Doing so will help to ensure the right data is available when you need it.

2.2.2 Big Data mining

The term ’Big Data’ appeared for first time in 1998 in a Silicon Graphics (SGI) slide by John Mashey with the title of ā€Big Data and the Next Wave of InfraStressā€. Big Data mining was very relevant from the beginning, as the first book mentioning ’Big Data’ is a data mining book that appeared also in 1998 by Weiss and Indrukya. However, the first academic paper with the words ’Big Data’ in the title appeared a bit later in 2000 in a paper by Diebold [F. Diebold On the Origin(s) and Development of the term ā€Big Dataā€]. The origin of the term ’Big Data’ is due to the fact that we are creating a huge amount of data every day. Usama Fayyad in his invited talk at the KDD BigMine’12 Workshop presented amazing data numbers about internet usage, among them are the following: each day Google has more than 1 billion queries per day, Twitter has more than 250 million tweets per day, Facebook has more than 800 million updates per day, and YouTube has more than 4 billion views per day. The data produced nowadays is estimated in the order of zettabytes, and it is growing around 40% every year. A new large source of data is going to be generated from mobile devices, and big companies like Google, Apple, Facebook, Yahoo. Twitter is starting to look carefully to this data to find useful patterns to improve user experience. We need new algorithms, and new tools to deal with all of this data (Big Data).

2.2.3 Application of Big Data

There are many applications of Big Data, for example the following:

  • Business: costumer personalization, churn detection
  • Technology: reducing process time from hours to seconds
  • Health: mining DNA of each person, to discover, monitor and improve health aspects of every one
  • Smart cities: cities focused on sustainable economic development and high quality of life, with wise management of natural resources.

These applications will allow people to have better services, better costumer experiences, and also be healthier, as personal data will permit to prevent and detect illness much earlier than before [Intel's Big Thinkers on Big Data, published 2012].

2.2.4 Challenges and Opportunities with Big Data

Big Data has the potential to revolutionize not just research, but also education. A recent detailed quantitative comparison of different approaches taken by 35 charter schools in NYC has found that one of the top five policies correlated with measurable academic effectiveness was the use of data to guide instruction.

It is widely believed that the use of information technology can reduce the cost of healthcare while improving its quality, by making care more preventive and personalized and basing it on more extensive (home-based) continuous monitoring. McKinsey estimates [McKinsey Global Institute. May 2011] a savings of 300 billion dollars every year in the US alone.

2.2.7 Problem or Questions answered in the Project.

  1. Can Social Media Platform data be mined?
  2. What are the models or approaches for mining Big Data on Social Media?
  3. How big is Big Data?
  4. How do one extract data from Social Media Platform?
  5. Why analyzing Big Data?
  6. What are the problems facing data mining on Social Media Platform?

Chapter 3 - Literature Review

3.1 Literature Review I (Big Data)

3.1.1 Concept of Big Data

The concept of big data refers to massive dataset in terms of volume, velocity and variety that challenges the current technological landscape. The key challenge in big data is not about storing increasingly large volumes of diverse data, but to make sense of unstructured data and turn it into actionable information. According to Hilbert and López [Hilbert M, López P. The world’s technological capacity to store. Commun Compute Inf, Sci. 2011;332:60–5.], big data is capable of delivering important prospects to guide better decisions. Likewise, Daniel [Daniel B. Big data and analytics in higher education: opportunities and challenges. Br J Edu Technol.2015;46(5):904–20.] proposed a conceptual framework to describe big data in higher education with three components-utilizing the framework as a way to describe, link the data systems in order to organize the available literature, and develop a research design to help frame a set of approaches for investigation. Moreover, Assunco [Assunção MD, Calheiros RN, Bianchi S, Netto MA, Buyya R. Big data computing and clouds: trends and future directions.J Parallel Distrib Comput. 2015;79:3–15.] mentions that big data challenges others aspects beyond storage, which are data management, governance and analytics. Organizations today generate a massive volume of data as a result of new technologies and systems that allow them to collect an increasing amount of logs, sensor information, datasets, trackers, etc. Social media is indeed a vast source of big data, as a single user can generate gigabytes of data per month by sharing photos and videos, sending thousands of messages and sharing other user’s content. To encounter this scenario, the infrastructural requirement that are needed for big data analytics are: (a) linear scalability; (b) high throughput; (c) fault tolerance and auto recovery; (d) high degree of parallelism; and (e) distributed data processing [Krishnan. Data warehousing in the age of big data. Newnes; 2013.]

Big data is characterized by volume, variety, velocity and value according to Philip Chen and Zhang [42]. Advanced IT devices, social media services and corporate information systems are continuously churning out very large amounts of structured and unstructured data and businesses are increasingly facing challenges in managing and capitalizing to their advantage.

3.1.2 Big Data Analytics

Big data analytics is defined as technologies (database and data mining tools) and techniques (analytical methods) that a company can implement to analyze large scale, complex data for various applications intended to augment the performance of the firm in various dimensions. According to a study conducted by Philip Chen and Zhang [Philip Chen CL, Zhang CY. Data-intensive applications challenges, techniques and technologies: a survey on bigdata. Inf Sci. 2014;275:314–47.] it is revealed that high-tech data storage, management, analysis capability and visual technologies are all part of big data analytics [Kwon O, Lee N, Shin B. Data quality management, data usage experience and acquisition intention of big data analytics. Int J Inf Manage. 2014;34(3):387–94.].

clickstream logs, whether data, emails, contracts, geographic data, reports, spreadsheets and social media is difficult to handle. That is, data from different domains are virtually impossible to translate into a structured form [Sheikh N. Big Data, Hadoop, and Cloud Computing, chapter 11. In: Sheikh N. editor. Implementing analytics. Boston: Morgan Kaufmann; 2013]. In fact, big data is diverse and unstructured, therefore it requires special tools and techniques that go beyond traditional information system and relational databases solutions.

3.2 Literature Review II (Social Media)

3.2.1 Social media (Sasser, Kilgour & Hollebeek 2014) are a conglomerate of Internet communication technologies that transform web-based communication into interactive social platforms (e.g. Twitter and Facebook). These channels came into existence due to the second evolution of the World Wide Web or Web 2.0 (Kaplan & Haenlein 2010) which collaboratively harnessed the collective intelligence of the masses involving content co-creation that increases content value via increased usage. Unmistakably, the business model is rapidly changing from B2C (business-to-consumer) to C2B2C (consumer-to-business-to-consumer) where firms’ and brands’ goals are now increasingly focused on driving customer conversations (Prahalad & Ramaswamy 2004) resulting in consumers’ contributing to brand communication in the form of new ideas and opinions. One example is the PC Company Dell which engaged its customers via ā€˜storm’ sessions to obtain over 17,000 ideas for new and improved products (Mullaney 2014). Not surprisingly, scholars have also concluded that highly engaged consumers lead to greater brand equity, share of wallet, retention, return on investment (ROI) and proactive word-of-mouth (WOM) (Vivek, Beatty & Morgan 2012). Some scholars have even argued that social media provide information that is inaccessible through traditional channels (Kozinets 2013). The presence of 1 billion Facebook users, 700 million QQ China users, 4 billion YouTube views, and 500 million Twitter users are testaments of the popularity of social media (Schultz & Peltier 2013). This is further evidenced by the $5.1 billion spent on social media advertising by US companies in 2013 alone (Elder .J Et al 2012).

3.2.2 Social Media Analytics

Social Media Analytics (SMA), defined as the concern over the development and evaluation of informatics tools and frameworks to collect, monitor, analyze, summarize and visualize social media data [Zeng, D., Chen, H., Lusch, R., and Li, S. "Social Media Analytics and Intelligence," Intelligent Systems, IEEE, Volume 25, Issue 6, 2010, pp. 13-16]. SMA differs from traditional data analytics particularly due to the nature of its unstructured data formats (text, pictures, video, etc.) which are characterized by heterogeneous and natural human language that is heavily context dependent (Kurniawati, Shanks & Bekmamedova 2013). Researchers have pointed out that SMA is a vital tool in today’s competitive business environment and is increasingly transforming marketing from an art to a science (Davenport & Harris 2007). In short, SMA presents a competitive advantage to those who have the knowledge and capacity to implement it well (Baltzan, 2012).

Chapter 4 R programming language, NetVizz Application and Gephi

4.1 R Programming Language

R is a programming language and software environment intended for deep statistical computing and graphics. Its open source and available across different platforms, e.g., Windows, Mac, Linux. It is now used in a variety of applications including visualizations and data mining. Mainstream reasons to use open source software have historically hinged on the free aspect, that is, free as in free. In the past, open source projects have often been plagued with serious drawbacks such as having limited functionality, being buggy, not staying up-to-date, and being difficult to get help with. However, open source projects such as R attract a large community of developers and users to overcome these issues. Furthermore, R has an expansive (and expanding) functionality and is constantly updated; thanks to the large number of people using and developing it, help is nearly always just a Google away. The open source nature of R makes it free, as in freedom from vendor lock-in, which is what Richard Stallman advocates as the best reason for moving to open source projects. As Mozilla's Firefox browser has commandingly demonstrated, open source software can be excellent and approachable as opposed to being aimed at niche users.

4.2 R interface (environment).

R language is fairly easy to use and very efficient. For instance, to add to numbers like ā€œ2 to 2ā€, all you need to do is type 2 + 2. Is as simple as that. The R IDE (Integrated development environment) I used in this project work is RStudio (https://www.rstudio.com/).

See figure 4.1 for this.

ā€œHere, I use a simple IF ELSE statement. If fruit is equal apple, R should print apple to the screen, else, R should print orange.

if (fruit == 'apple'){

  • print('Apple')
  • }else{
  • print('Orange')
  • }

Let me run this simple program in R.

4.3 Visualizing data in R

One of the most important aspects of data analytics is to depict meaningful insights with crisp and concise visualizations. Data visualization is one of the most important aspects of exploratory data analysis, as well as an important medium to present results from any analyzes. There are three main popular plotting systems in R:

  • The base plotting system which comes with the basic installation of R
  • The lattice plotting system which produces better looking plots than the base plotting system
  • The ggplot2 package which is based on the grammar of graphics and produces beautiful, publication quality visualizations (this is the package I used in analyzing Prof. Yemi Osinbanjo’s, Pres. Buhari and my tweet/re-tweet hast-tag frequency analysis).

Figure 4.2 R’s ggplot2 graph of a twitter hashtag frequency.

4.4 Netvizz Application (Netvizz V1.44)

This section describes Netvizz, a data collection and extraction application that allows one (e.g. researchers) to export data in standard file formats from different sections of the Facebook social networking service and Instagram. Groups, and pages can thus be analyzed quantitatively and qualitatively with regards to demographical, post demographical, and relational characteristics. As seen in figure 4.4, you can extract data on Facebook’s Group, Page, Page Likes, Searches, etc. This data can later be analyzed using Gephi (brief introduction on Gephi is presented in next section, 4.5)