replicationgraph: Replication graph

Description Usage Arguments Examples

Description

Visualise multiple-table replication structure as a bipartite graph.

Usage

1
2
3
4
  replicationgraph(replicationmatrix, dimensionnames,
    variablenames, min.interbox = 0.01, edgespace = 0.3,
    boxheight = 1/(max(dim(replicationmatrix)) - (1 - min.interbox)),
    cex = 1, lwd = 1)

Arguments

replicationmatrix

A binary matrix with rows and columns representing dimensions of replication and variables respectively.

dimensionnames

Optional character vector giving names for the dimensions of replication. If missing, the rownames of replicationmatrix are used.

variablenames

Optional character vector giving names for the variables. If missing, the colnames of replicationmatrix are used.

min.interbox

Minimum inter-box distance.

edgespace

Number between 0 and 1 giving the width of the space for the edges of the graph.

boxheight

Number greater than zero giving the height of the boxes representing the nodes of the graph. Numbers that are too large to fit in the plot region will be automatically reduced.

cex

Text size.

lwd

Edge width.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
s <- matrix(c(1, 1), 2, 1, byrow = TRUE, dimnames = list(c('sites',
 'species'), c('abundance')))
replicationgraph(s)
s <- matrix(c(1, 1, 0, 1), 2, 2, byrow = TRUE, dimnames = list(c('sites',
 'species'), c('envrnmnt', 'abundance')))
replicationgraph(s)
s <- matrix(c(1, 1, 0, 0, 1, 1), 2, 3, byrow = TRUE, dimnames = list(c('sites', '
 species'), c('envrnmnt', 'abundance', 'traits')))
replicationgraph(s)
s <- matrix(c(1, 1, 1, 0, 1, 1), 2, 3, byrow = TRUE, dimnames = list(c('sites',
 'species'), c('envrnmnt', 'abundance', 'traits')))
replicationgraph(s)
replicationgraph(s, lwd = 10)
replicationgraph(s, cex = 3)
replicationgraph(s, edgespace = 0.1)
replicationgraph(s, boxheight = 0)
replicationgraph(s,
 variablenames = c('envrnmntl\nvrbls','species\nabdncs','species\ntraits'))

replicationgraph documentation built on May 2, 2019, 5:25 p.m.