vis: Visualise team networks

Description Usage Arguments Details

View source: R/vis.R

Description

Download and visualize team networks based on data in a Google Spreadsheet.

make_net downloads data and creates igraph object.

vis_net draws created igraph object.

vis_all visualizes all networks and saves them to files 'XXXX.png'

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
vis(sheet, ...)

make_net(d)

vis_net(g, vid = V(g), gid = "all", vcol = c("#66c2a5", "yellow",
  "#8da0cb", "white"), vshape = c("mbcircle", "mbsquare"), vframe = c(black
  = NA, `#e41a1c` = 0, `#377eb8` = 1), gcol = RColorBrewer::brewer.pal(8,
  "Set3"), ggroups = TRUE)

vis_all(sheet_names = NULL, skip_sheets = NULL, overwrite = FALSE,
  verbose = FALSE, ...)

Arguments

sheet

sheet name

...

other arguments passed to vis_net

d

data frame downloaded from GS

g

igraph object

vid

numeric ids of vertices to draw, all by default

gid

numeric ids of groups to draw or "all" (default), or "none".

vcol

vertex color mapping

vshape

vertex shape mapping

vframe

vertex frame color mapping

gcol

vertex group color mapping

ggroups

whether to take groups into account when calculating layout

sheet_names

names of GS sheet names to visualize, if NULL draws all WF and DC sheets with numbers 1 to 15. Single character element (e.g. "WF") is interpreted as a regular expression to search through sheet names

skip_sheets

character vector, if sheet_names is NULL, sheets with these names will be skipped

overwrite

logical redo existing files

verbose

logical give verbose output or not

Details

Needs authorisation with gs_auth() first.


mbojan/recon documentation built on Nov. 24, 2019, 5:27 p.m.