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'))


Search within the replicationgraph package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.