viewSubNet {HTSanalyzeR} | R Documentation

## Plot a figure of the enriched subnetwork

### Description

This is an generic function.

When implemented as the S4 method of class `NWA`, this function invokes the function `networkPlot` to plot the subnetwork identified by the 'BioNet' package.

### Usage

    viewSubNet(object)

### Arguments

`object` | an object. When implemented as S4 methods of class `NWA`, this argument is an object of class 'GSCA'.

### Details

After the analyses step for an object of class `NWA`, the user can generate the enriched subnetwork identified by the package 'BioNet'. If the slot 'phenotype' was inputted during the initialization of the object, this function will send it to the function `networkPlot` as the argument 'phenotypeVector' to highlight nodes in different colors. If the argument 'species' of the function `analyze` has been assigned, the labels of the nodes of this subnetwork will be mapped to gene symbols corresponding to the species; otherwise, the Entrez identifiers will be used as the labels.

### Author(s)

Xin Wang xw264@cam.ac.uk

### See Also

`networkPlot`, `analyze`, `plotSubNet`

### Examples

    ## Not run:
    ##load sample data
    data("KcViab_NWA")
    ##plot to screen the identified subnetwork
    viewSubNet(KcViab_NWA)

    ## End(Not run)

[Package HTSanalyzeR version 2.38.0 Index]