plot-methods: Plot a Genotype-Phenotype Network

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Plot methods for genotype-phenotype networks. plot.gnbp and plot.dbn can be used to plot networks in which evidence has been absorbed and propagated. The beliefs or Jeffrey's signed information for conditional gaussian and phenotypic states and Fold Changes for discrete bayesian networks is mapped onto the network. plot.gpfit and plot.dbfit are plot methods for objects of class "gpfit" and "dbnfit" respectively.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S3 method for class 'gnbp'
plot(x, y="JSI",ncol = 1, col.palette,col.length = 100, 
                    fontsize=14, fontcolor="black",...)
## S3 method for class 'dbn'
plot(x, y="state",ncol = 1, col.palette,col.length = 100, 
                    fontsize=14, fontcolor="black",...)  
## S3 method for class 'gpfit'
plot(x, fontsize=14, fontcolor="black",...)
## S3 method for class 'dbnfit'
plot(x, fontsize=14, fontcolor="black",...)            
                    

Arguments

x

An object of class "gnbp" (plot.gnbp), "dbn" (plot.dbn), "gpfit" (plot.gpfit) or "dbnfit" (plot.dbnfit)

y

A character string. Valid options are "JSI" (default) or "belief" for Conditional Gaussian network and "FC" or "state" for Discrete Bayesian networks. plot.dbn plots only discrete bayesian networks. Note that y will be ignored for plot.dbnfit and gpfit

ncol

a positive integer specifying the column number of JSI / belief / FC to plot. By default, the first column will be used.

col.palette

A list of character strings. For "JSI","belief" and "FC" a list of 6 elements specifying colors for colormap.All 6 elements should be character strings specifying the colour for pos_high= high end of gradient of positive values (default = "red" (JSI, belief), "darkmagenta",(FC)) pos_low=low end of gradient of positive values (default = "wheat1" (JSI, belief), "palegoldenrod",(FC)) neg_high=high end of gradient of positive values (default = "cyan" (JSI, belief), "palegoldenrod",(FC)) neg_low=low end of gradient of positive values (default = "blue" (JSI, belief), "gold2",(FC)) dsep_col= d-separated nodes (default = "white") qtl_col= discrete nodes (QTLs) (default = "grey") node_abs_col= nodes for which evidence has been absorbed (default = "palegreen2")

For "state", a list of 4 elements specifying colors for colormap should be specified. All 4 elements should be character strings specifying the colour for col_nodes- a vector of colors for phenotype states should be specified. The length of the vector should be equal to the maximum number of phenotype states possible. dsep_col= d-separated nodes (default = "white") qtl_col= discrete nodes (QTLs) (default = "grey") node_abs_col= nodes for which evidence has been absorbed (default = "palegreen2")

col.length

a positive integer (default = 100) specifying the resolution of the colormap (number of colors) in case of "belief", "JSI" and "FC". For "state", this argument will be ignored.

fontsize

a single numeric value. fontsize for node labels

fontcolor

fontcolor for node labels

...

further arguments to the function plot. These will be ignored

Details

plot.gpfit and plot.dbnfit are generic plot methods for objects of class"gpfit" and "dbnfit" respectively that are output from the fit-methods. These are networks in which evidence has not been absorbed and propagated.

plot.gnbp and plot.dbn are generic plot methods for objects of class "gnbp" and "dbn" that are outputs from the absorb methods. These functions plot the genotype-phenotype networks in which evidence has been absorbed and propagated and maps the quantitative system wide effects on the network. Both conditional gaussian and discrete bayesian networks are supported. Users can specify the colormap options such as end colors for the positive and negative gradients and the resolution of the colormap. The default node shapes are "ellipse" for the phenotype nodes and "box" for genotype nodes.The d-separated nodes are white while the colored nodes are d-connected, with the color indicating the strength and direction of change. The node for which evidence is absorbed is colored green (default color).

Value

x is invisibly returned

Author(s)

Janhavi Moharil<janhavim@buffalo.edu>

See Also

absorb.gnbp, absorb.dbn, fit.gnbp, fit.dbn

Examples

1
2
3
4
5
6
7
8
9
## Fit, absorb and plot a genotype-phenotype network
data(mouse)
## Not run: 
mouse.cgbn<-fit.gnbp(mouse[,1:5],mouse[,6:19],alpha=0.1)
plot(mouse.cgbn)
mouse.cgbn.abs<-absorb.gnbp(mouse.cgbn,node="Tlr12",evidence=matrix(-0.99))
plot(mouse.cgbn.abs)

## End(Not run)

geneNetBP documentation built on May 2, 2019, 9:41 a.m.