You are on page 1of 15

Social Network with R

THU.CSIE

THU.CSIE

Outline
R Installation
Case Study I
?

Case Study II

THU.CSIE

TaiwanRUserGroup
https://github.com/TaiwanRUserGroup/DSC2015Tutorial

THU.CSIE

Installation
https://www.r-project.org/

THU.CSIE

Installation(Cont.)

THU.CSIE

RStudio
https://www.rstudio.com/products/rstudio/download/

THU.CSIE

DSC2015Tutorial
> source("http://taiwanrusergroup.github.io/R/init.R")
> library(DSC2015R)
> install_course()

THU.CSIE

{swirl}
http://swirlstats.com/students.html

THU.CSIE

ETL on R 2015
> slide()

THU.CSIE

THU.CSIE

SPARQL Package for R/Gephi


http://linkedscience.org/tools/sparql-package-for-r/sparql-packagefor-r-gephi-movie-star-graph-visualization-tutorial/

THU.CSIE

Which Relations

Actor-movie

Actor-director

THU.CSIE

SPARQL Query

THU.CSIE

Workflow
ETL

Analytics

live.dbpedia
SPARQL

incidence
actor_movie_matrix
actor_director_matrix

R script
import

Adjust DataType

Visualization

THU.CSIE

Six degrees of Kevin Bacon


sum(kevin_bacon_hist$intensities[1:6])
# output:
# [1] 0.9536082

95%

Close enough. 95% of the actors in this dataset are


within 6 degrees of Kevin Bacon.

You might also like