igraph2: igraph2

View source: R/igraph2.R

igraph2R Documentation

igraph2

Description

draw network graph from list input

Usage

igraph2(
  x,
  freq = FALSE,
  label.cex = 1.7,
  vertex.size = 5,
  split2words = FALSE,
  rm.punctuation = FALSE,
  lowerize = FALSE,
  stemming = FALSE,
  capitalize = FALSE,
  rm.stopwords = FALSE,
  rm.numbers = FALSE,
  tkplot = FALSE,
  seed = NULL,
  min.n = 1,
  min.freq = 0,
  max.freq = 1,
  layout = 1
)

Arguments

x

a list with connected elements as vector

freq

logical. If TRUE displays frequency of connections in edge labels

label.cex

numerical. Node label size

vertex.size

numerical. Size of verices

split2words

logical. If TRUE each element is further split at spaces

rm.punctuation

logical. If TRUE punctuation/spaces are removed

lowerize

logical. If TRUE lowerize to unify elements

stemming

logical. If TRUE enables stemming

capitalize

logical. If TRUE capitalize to display

rm.stopwords

logical. If TRUE uses stop word removal

rm.numbers

logical. IF TRUE excludes numbers

tkplot

logical. If TRUE enables interactive adjustment with tkplot

seed

numerical. Set seed for reproducible graphs

min.n

numerical. Absolute minimum of involvement per element

min.freq

numerical. Relative minimum of involvement per element

max.freq

numerical. Relative maximum of involvement per element

layout

numerical. Select out of: 1: layout.fruchterman.reingold(g) 2: layout.random(g) 3: layout.kamada.kawai(g) 4: layout.circle(g) 5: layout.reingold.tilford(g) 6: layout1 <- layout.sphere(g)

Examples

x<-list(
     c("Laura","Ingmar"),
     c("Peter","Renate","Ingmar","Andrea"),
     c("Nassim","Ingmar","Sergej"),
     c("Laura","Rike","Andra"),
     c("Marlene","Nassim","Christina","Sabine"),
     c("Bela","Ingmar","Mariola","Nassim"),
     c("Gloria","Kim","Olek","Bolek"))
igraph2(x,seed=2)

ingmarboeschen/graphing documentation built on Jan. 14, 2025, 7:32 a.m.