VisVineR: VisVineR

Description Usage Arguments Value References Examples

View source: R/VisVineR.R

Description

Interface that uses a RVineMatrix object that can be displayed using visNetworks

Usage

1
2
3
VisVineR(RVM, group, group.size, colours, shape = c("square", "triangle",
  "box", "circle", "dot", "star", "ellipse", "database", "text", "diamond")[1],
  nodesIdSelection = F, seed = 3141)

Arguments

RVM

RVineMatrix object

group

a vector containing the name of the groups (by default, groups are 1)

group.size

a vector with the number of variables in each group

colours

a vector of length equal to group.size specifying colours for each group

shape

parameter specifying node shape

seed

formation seed

Value

Packages loaded into R

References

http://datastorm-open.github.io/visNetwork/

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
load_pkg(c("dplyr", "visNetwork", "tidyr", "VineCopula"))

group <- Market_info$Hanjo.Industry %>% as.character()
group.size <-  
 Market_info %>% 
 group_by(Hanjo.Industry) %>%
 summarise(n = n()) %>% 
 select(n) %>% unlist 
colours <- c("#39c9bb", "#398fc9", "#39c973"," #bb39c9", 	"#c9bb39")

VisVineR(
 RVM,
 group = group,
 group.size = group.size,
 seed = seed,
 colours = colours,
 shape = shape,
 seed = 50)

HanjoStudy/VineVizR documentation built on May 6, 2019, 10:55 p.m.