Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
RStudio for R Statistical Computing Cookbook

You're reading from   RStudio for R Statistical Computing Cookbook Over 50 practical and useful recipes to help you perform data analysis with R by unleashing every native RStudio feature

Arrow left icon
Product type Paperback
Published in Apr 2016
Publisher
ISBN-13 9781784391034
Length 246 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Andrea Cirillo Andrea Cirillo
Author Profile Icon Andrea Cirillo
Andrea Cirillo
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

RStudio for R Statistical Computing Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
1. Acquiring Data for Your Project FREE CHAPTER 2. Preparing for Analysis – Data Cleansing and Manipulation 3. Basic Visualization Techniques 4. Advanced and Interactive Visualization 5. Power Programming with R 6. Domain-specific Applications 7. Developing Static Reports 8. Dynamic Reporting and Web Application Development Index

Making use of the igraph package to draw a network


The igraph package is a reference point for network visualization in the R environment.

igraph is actually more than an R package, since you can use igraph tools even with Python and C/C++.

If you are performing analysis that involves network visualizations and R, you should look at this package as one of your more relevant allies.

This recipe will let you enter the wide world of network visualization with R, showing you how to create a network plot starting from a data frame.

Getting ready

Install the igraph package:

install.packages("igraph")
library(igraph)

We will use the flo dataset showing the relationship between Renaissance Florentine families.

Marriage between Adimari and Cascioni families, from Cassone Adimari, around 1420, Florence

This dataset is provided as an adjacency matrix within the network package.

Therefore, in order to make it available, we have to install the network package and load the dataset by running the data() function...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime
Visually different images