Statistics
| Branch: | Revision:

iof-tools / Rscripts / centralityPlotter.R @ 62798f6e

History | View | Annotate | Download (373 Bytes)

1
# set the environment
2
setwd("~/src/iof-tools/Rscripts")
3

    
4
library(dplyr)
5
library(ggplot2)
6
library(Hmisc)
7

    
8
source("functions.R")
9

    
10
args <- commandArgs(trailingOnly = TRUE)
11

    
12
file <- "centrality.csv"
13
outFile <- "outCentrality"
14

    
15
csv1 <- read.csv(file, header = T, sep=" ")
16

    
17
plot(ecdf(csv1$centrality),
18
     main="CDF for node centrality",
19
     xlab="centrality",
20
     ylab="CDF")