Repository navigation
Expand file tree
/
Copy pathglobal.R
More file actions
64 lines (54 loc) · 1.62 KB
/
Copy pathglobal.R
File metadata and controls
64 lines (54 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
##########################################################################################################
# THREADNET: SHINY GLOBAL
# (c) 2017 Michigan State University. This software may be used according to the terms provided in the
# GNU General Public License (GPL-3.0) https://opensource.org/licenses/GPL-3.0?
# Absolutely no warranty!
##########################################################################################################
# 15 October Point of view code has solidified somewhat
# 20 October Starting on NetworkD3
# June 6 finishing up Package
# add the dependent packages
suppressPackageStartupMessages({
library(shiny)
library(shinyjs)
library(plotly)
library(ggplot2)
library(tidyverse)
library(ngram)
library(stringr)
library(stringdist)
library(igraph)
library(networkD3)
library(visNetwork)
library(xesreadR)
library(colorspace)
library(DT)
library(RColorBrewer)
library(lubridate)
library(knitr)
library(ThreadNet)
})
# visualization types for UI dropdowns
visualizations <- c(
'Threads (event time)',
'Threads (actual time)',
'Threads (relative time)',
'Event network (circle)',
'Event network (force)',
'Other networks',
'Role Maps',
'Thread Trajectories'
)
# load functions
# source(file="ThreadNet_Core.R")
# source(file="ThreadNet_Misc.R" )
# source(file="ThreadNet_Graphics.R" )
# source(file="ThreadNet_Metrics.R" )
# source(file="Event_Mappings.R" )
# Set time zone default to avoid errors
Sys.setenv(TZ='GMT')
# This is where we store the list of event mappings.
Global_POV <<- list()
Global_POV_Name <<- list()
Global_POV_Event_CF <<- list()
Global_POV_Thread_CF <<- list()