network_plot: Generate Network Plot

Description Usage Arguments Details Value Author(s) Examples

Description

This function generates a network plot for the network data.

Usage

1
2
3
network_plot(netGraph, omicsData = NULL, modData = NULL,
  colour = "Phylum", vsize = FALSE, legend.show = TRUE,
  legend.pos = "bottomleft")

Arguments

netGraph

an object of class 'networkGraph', created by pmartRseq_igraph

omicsData

Optional, an object of the class 'seqData' usually created by as.seqData, if want to colour by taxonomy and/or scale vertices by abundance

modData

Optional, an object of class 'modData', created by detect_modules, if want to colour by modules.

colour

Optional, if desired, can colour vertices by a taxonomic level or 'Module' for module. Use 'NULL' if no colour is desired.

vsize

Logical, should vertices be scaled by median abundance of taxa

legend.show

Logical, should a legend be shown. Default is TRUE.

legend.pos

Optional, if legend==TRUE, where to position the legend. Default is 'bottomleft'.

Details

A network graph is created for the network(s) that were generated.

Value

A network graph.

Author(s)

Allison Thompson

Examples

1
2
3
4
5
6
7
8
## Not run: 
library(mintJansson)
data(rRNA_data)
mynetwork <- network_calc(omicsData = rRNA_data)
mygraph <- pmartRseq_igraph(netData = mynetwork, coeff=0.6, pval=NULL, qval=0.05)
network_plot(omicsData = rRNA_data, netGraph = mygraph, colour = "Phylum", vsize = TRUE, legend.show = TRUE, legend.pos = "bottomleft")

## End(Not run)

pmartR/pmartRseq documentation built on May 25, 2019, 9:20 a.m.